mirror of
https://github.com/matrix-construct/construct
synced 2025-03-14 05:20:17 +01:00
configure: Disable generating synchronization guards around static initializations.
This commit is contained in:
parent
b06670266d
commit
5ab5ef53cf
1 changed files with 9 additions and 0 deletions
|
@ -522,6 +522,15 @@ CXXFLAGS+=" -fvisibility-inlines-hidden"
|
|||
dnl see gcc(1)
|
||||
CXXFLAGS+=" -fnothrow-opt"
|
||||
|
||||
dnl This disables thread-safety for static variable initialization
|
||||
dnl (specifically local static variables inside functions) which reduces
|
||||
dnl generated code size and complexity. This is alright since construct is
|
||||
dnl primarily single threaded. Even if other threads are spawned for special
|
||||
dnl tasks we consider the likelyhood of a static initialization race to either
|
||||
dnl be sufficiently low or simply immaterial for our uses of them.
|
||||
dnl
|
||||
CXXFLAGS+=" -fno-threadsafe-statics"
|
||||
|
||||
dnl
|
||||
dnl Compiler warnings
|
||||
dnl
|
||||
|
|
Loading…
Add table
Reference in a new issue