Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: fix __attribute__((aligned(x))) on gcc/clang #334

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

rkitover
Copy link
Contributor

@rkitover rkitover commented Mar 8, 2024

This is a followup on 81d5a24 (build: fix building with MSVC,
2024-03-07).

Fix the missing trailing _ in attribute for
__attribute((aligned(x))).

@rkitover rkitover marked this pull request as draft March 8, 2024 19:26
@flibitijibibo
Copy link
Member

This isn't safe AFAIK, but we've been using this for some time now... I'll forward this to the Apple peoples on the FNA Discord to see what might be up.

@rkitover
Copy link
Contributor Author

rkitover commented Mar 8, 2024

Would you support selectively increasing the C standard to 11 only on clang for the time being?

@flibitijibibo
Copy link
Member

That would probably be okay, though we're still trying to figure out if there's a way to make this work correctly on M1. Will make the call this weekend!

@rkitover rkitover mentioned this pull request Mar 8, 2024
11 tasks
@kiddkaffeine
Copy link

@rkitover, did this exist prior to the other change, or is it a regression? How does it manifest? Crash? Corrupted audio? Is this specific to M1? Wouldn't it affect iOS/tvOS as well?

This is a followup on 81d5a24 (build: fix building with MSVC,
2024-03-07).

Fix the missing trailing _ in __attribute__ for
__attribute((aligned(x))).

Signed-off-by: Rafael Kitover <[email protected]>
@rkitover
Copy link
Contributor Author

rkitover commented Mar 9, 2024

@flibitijibibo I'm sorry, but this was all caused because I made a typo, I wrote __attribute_ instead of __attribute__, this works correctly now.

rkitover added a commit to rkitover/vcpkg that referenced this pull request Mar 9, 2024
Add new port FAudio, an "accuracy-focused XAudio reimplementation for
open platforms".

Use the PLATFORM_WIN32 cmake flag on Windows, otherwise use the sdl2
dependency.

MSVC build PR is here:

FNA-XNA/FAudio#333

, followup PR to fix alignment is here:

FNA-XNA/FAudio#334

, MSYS2 package is here:

https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-faudio/PKGBUILD
.

Signed-off-by: Rafael Kitover <[email protected]>
@rkitover rkitover changed the title build: disable data align for arm64 neon on clang build: fix __attribute__((aligned(x))) on gcc/clang Mar 9, 2024
@rkitover rkitover marked this pull request as ready for review March 9, 2024 06:16
@flibitijibibo flibitijibibo merged commit 68a555e into FNA-XNA:master Mar 9, 2024
5 checks passed
@rkitover rkitover deleted the msvc-build-clang-followup branch March 9, 2024 13:36
rkitover added a commit to rkitover/vcpkg that referenced this pull request Mar 10, 2024
Add new port FAudio, an "accuracy-focused XAudio reimplementation for
open platforms".

Use the PLATFORM_WIN32 cmake flag on Windows, otherwise use the sdl2
dependency.

MSVC build PR is here:

FNA-XNA/FAudio#333

, followup PR to fix alignment is here:

FNA-XNA/FAudio#334

, MSYS2 package is here:

https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-faudio/PKGBUILD
.

Signed-off-by: Rafael Kitover <[email protected]>
rkitover added a commit to rkitover/vcpkg that referenced this pull request Mar 10, 2024
Add new port FAudio, an "accuracy-focused XAudio reimplementation for
open platforms".

Use the PLATFORM_WIN32 cmake flag on Windows, otherwise use the sdl2
dependency.

MSVC build PR is here:

FNA-XNA/FAudio#333

, followup PR to fix alignment is here:

FNA-XNA/FAudio#334

, MSYS2 package is here:

https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-faudio/PKGBUILD
.

Signed-off-by: Rafael Kitover <[email protected]>
rkitover added a commit to rkitover/vcpkg that referenced this pull request Mar 10, 2024
Add new port FAudio, an "accuracy-focused XAudio reimplementation for
open platforms".

Use the PLATFORM_WIN32 cmake flag on Windows, otherwise use the sdl2
dependency.

MSVC build PR is here:

FNA-XNA/FAudio#333

, followup PR to fix alignment is here:

FNA-XNA/FAudio#334

, and another followup for the SDL2 dependency:

FNA-XNA/FAudio#335

, the MSYS2 package is here:

https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-faudio/PKGBUILD
.

Signed-off-by: Rafael Kitover <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants