summaryrefslogtreecommitdiffstats
path: root/lib/uid_wrapper/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uid_wrapper/wscript')
-rw-r--r--lib/uid_wrapper/wscript13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/uid_wrapper/wscript b/lib/uid_wrapper/wscript
index bd797e5a72..49c23d2610 100644
--- a/lib/uid_wrapper/wscript
+++ b/lib/uid_wrapper/wscript
@@ -9,6 +9,19 @@ def configure(conf):
conf.DEFINE('USING_SYSTEM_UID_WRAPPER', 1)
libuid_wrapper_so_path = 'libuid_wrapper.so'
else:
+ # check HAVE_GCC_ATOMIC_BUILTINS
+ conf.CHECK_CODE('''
+ #include <stdbool.h>
+ int main(void) {
+ bool x;
+ bool *p_x = &x;
+ __atomic_load(p_x, &x, __ATOMIC_RELAXED);
+ return 0;
+ ''',
+ 'HAVE_GCC_ATOMIC_BUILTINS',
+ addmain=False,
+ msg='Checking for atomic builtins')
+
# check HAVE_GCC_THREAD_LOCAL_STORAGE
conf.CHECK_CODE('''
__thread int tls;