Skip to content

Commit

Permalink
openal-soft: fix atomic test
Browse files Browse the repository at this point in the history
It seems __sync_synchronize does not need libatomic.

Test __atomic_is_lock_free instead.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Nov 14, 2024
1 parent ade7de9 commit 688adbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -2694,6 +2694,7 @@
"openal"
],
"versions": [
"1.23.1-3",
"1.23.1-2",
"1.23.1-1",
"1.23.0-1",
Expand Down
2 changes: 1 addition & 1 deletion subprojects/packagefiles/openal-soft/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ if cdata.get('HAVE_NEON')
core_sources += 'core/mixer/mixer_neon.cpp'
endif

if host_machine.system() == 'windows' or cpp.links('int main(){__sync_synchronize();}')
if cpp.links('#include <atomic>\n#include <bitset>\nint main(){std::atomic<std::bitset<4u>> b;std::atomic_is_lock_free(&b);}')
atomic_dep = dependency('', required: false)
else
atomic_dep = cpp.find_library('atomic', required: false)
Expand Down

0 comments on commit 688adbb

Please sign in to comment.