summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-02-13 06:45:40 +0100
committerwm4 <wm4@nowhere>2017-02-13 06:45:40 +0100
commit81efe20cd74cefd805b68a99a45248cbf4914212 (patch)
tree386cf7cc6ae5acc30722bee465e7f43f15bbfaad /wscript
parent3739d1318fdb658bb6037bfe06bb6cefb3b50a09 (diff)
downloadmpv-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--wscript12
1 files changed, 2 insertions, 10 deletions
diff --git a/wscript b/wscript
index e660ff7003..aefa6dd82b 100644
--- a/wscript
+++ b/wscript
@@ -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',