summaryrefslogtreecommitdiffstats
path: root/modules/mono/tls_configure.py
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2019-03-01 21:51:20 +0100
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2019-04-07 19:03:09 +0200
commit6bb29eb8470052d5fd11eb0a81cf496f99df2f67 (patch)
tree9b9870f9ba46e597e113c0419a3043a70ba033c3 /modules/mono/tls_configure.py
parent01c2071d047909a1b98793d2a3f08a3c220d96fd (diff)
downloadredot-engine-6bb29eb8470052d5fd11eb0a81cf496f99df2f67.tar.gz
Mono: Reorganize build scripts
All build scripts, other than config.py and SCSub, are now located in the build_scripts subdirectory.
Diffstat (limited to 'modules/mono/tls_configure.py')
-rw-r--r--modules/mono/tls_configure.py36
1 files changed, 0 insertions, 36 deletions
diff --git a/modules/mono/tls_configure.py b/modules/mono/tls_configure.py
deleted file mode 100644
index 622280b00b..0000000000
--- a/modules/mono/tls_configure.py
+++ /dev/null
@@ -1,36 +0,0 @@
-from __future__ import print_function
-
-def supported(result):
- return 'supported' if result else 'not supported'
-
-
-def check_cxx11_thread_local(conf):
- print('Checking for `thread_local` support...', end=" ")
- result = conf.TryCompile('thread_local int foo = 0; int main() { return foo; }', '.cpp')
- print(supported(result))
- return bool(result)
-
-
-def check_declspec_thread(conf):
- print('Checking for `__declspec(thread)` support...', end=" ")
- result = conf.TryCompile('__declspec(thread) int foo = 0; int main() { return foo; }', '.cpp')
- print(supported(result))
- return bool(result)
-
-
-def check_gcc___thread(conf):
- print('Checking for `__thread` support...', end=" ")
- result = conf.TryCompile('__thread int foo = 0; int main() { return foo; }', '.cpp')
- print(supported(result))
- return bool(result)
-
-
-def configure(conf):
- if check_cxx11_thread_local(conf):
- conf.env.Append(CPPDEFINES=['HAVE_CXX11_THREAD_LOCAL'])
- else:
- if conf.env.msvc:
- if check_declspec_thread(conf):
- conf.env.Append(CPPDEFINES=['HAVE_DECLSPEC_THREAD'])
- elif check_gcc___thread(conf):
- conf.env.Append(CPPDEFINES=['HAVE_GCC___THREAD'])