summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2014-06-17 20:03:19 +0200
committerwm4 <wm4@nowhere>2014-06-17 22:44:51 +0200
commit84eebc6e4eb0a8731ca07e387749fd7167624bfd (patch)
tree26159e2ab7683f443698ed7fedb4fdf1e2fa2905 /wscript
parent8ffef4be92fe52b6d70c0f76e92f062a4e6eeeca (diff)
downloadmpv-84eebc6e4eb0a8731ca07e387749fd7167624bfd.tar.bz2
mpv-84eebc6e4eb0a8731ca07e387749fd7167624bfd.tar.xz
build: check for 64bit stdatomic.h operations too
This fixes the build on platform where the atomic calls can't be turned into lock-free instructions and thus need the external libatomic library (e.g. mips).
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 3 insertions, 3 deletions
diff --git a/wscript b/wscript
index 075e1cf20c..6c5963387e 100644
--- a/wscript
+++ b/wscript
@@ -118,10 +118,10 @@ main_dependencies = [
}, {
'name': 'stdatomic',
'desc': 'stdatomic.h',
- 'func':
+ 'func': check_libs(['atomic'],
check_statement('stdatomic.h',
- '_Atomic int test = ATOMIC_VAR_INIT(123);'
- 'int test2 = atomic_load(&test)')
+ 'atomic_int_least64_t test = ATOMIC_VAR_INIT(123);'
+ 'int test2 = atomic_load(&test)'))
}, {
'name': 'atomic-builtins',
'desc': 'compiler support for __atomic built-ins',