diff options
author | wm4 <wm4@nowhere> | 2017-02-13 06:45:40 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-02-13 06:45:40 +0100 |
commit | 81efe20cd74cefd805b68a99a45248cbf4914212 (patch) | |
tree | 386cf7cc6ae5acc30722bee465e7f43f15bbfaad /wscript | |
parent | 3739d1318fdb658bb6037bfe06bb6cefb3b50a09 (diff) | |
download | mpv-81efe20cd74cefd805b68a99a45248cbf4914212.tar.bz2 mpv-81efe20cd74cefd805b68a99a45248cbf4914212.tar.xz |
atomic: remove __atomic builtin usage
Using these was a temporary solution while some compilers implemented
the underlying atomic mechanisms, but not the C11 language parts (or
that's what I guess). Not really useful for us anymore. Also, there is
the slight risk of having subtly incorrect semantics by using
potentially changing compiler internals and such.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -171,19 +171,11 @@ main_dependencies = [ 'atomic_int_least64_t test = ATOMIC_VAR_INIT(123);' 'atomic_fetch_add(&test, 1)')) }, { - 'name': 'atomic-builtins', - 'desc': 'compiler support for __atomic built-ins', - 'func': check_libs(['atomic'], - check_statement('stdint.h', - 'int64_t test = 0;' - 'test = __atomic_add_fetch(&test, 1, __ATOMIC_SEQ_CST)')), - 'deps_neg': [ 'stdatomic' ], - }, { 'name': 'atomics', - 'desc': 'stdatomic.h support or emulation', + 'desc': 'stdatomic.h support or slow emulation', 'func': check_true, 'req': True, - 'deps_any': ['stdatomic', 'atomic-builtins', 'gnuc'], + 'deps_any': ['stdatomic', 'gnuc'], }, { 'name': 'c11-tls', 'desc': 'C11 TLS support', |