|
|
@ -48,7 +48,7 @@ CFLAGS = { |
|
|
|
'common': { |
|
|
|
'common': { |
|
|
|
# disable thread-safe local static initialization for C++11 code, as it cause crashes on Windows XP |
|
|
|
# disable thread-safe local static initialization for C++11 code, as it cause crashes on Windows XP |
|
|
|
'msvc': ['/D_USING_V110_SDK71_', '/Zi', '/FS', '/Zc:threadSafeInit-'], |
|
|
|
'msvc': ['/D_USING_V110_SDK71_', '/Zi', '/FS', '/Zc:threadSafeInit-'], |
|
|
|
'clang': ['-g0', '-fno-strict-aliasing'], |
|
|
|
'clang': ['-fno-strict-aliasing'], |
|
|
|
'gcc': ['-g0', '-fno-strict-aliasing', '-fvisibility=hidden'], |
|
|
|
'gcc': ['-g0', '-fno-strict-aliasing', '-fvisibility=hidden'], |
|
|
|
'owcc': ['-fno-short-enum', '-ffloat-store', '-g0'] |
|
|
|
'owcc': ['-fno-short-enum', '-ffloat-store', '-g0'] |
|
|
|
}, |
|
|
|
}, |
|
|
@ -67,7 +67,7 @@ CFLAGS = { |
|
|
|
'release': { |
|
|
|
'release': { |
|
|
|
'msvc': ['/O2', '/MT'], |
|
|
|
'msvc': ['/O2', '/MT'], |
|
|
|
'owcc': ['-O3', '-fomit-leaf-frame-pointer', '-fomit-frame-pointer', '-finline-functions', '-finline-limit=512'], |
|
|
|
'owcc': ['-O3', '-fomit-leaf-frame-pointer', '-fomit-frame-pointer', '-finline-functions', '-finline-limit=512'], |
|
|
|
'default': ['-O2', '-funsafe-math-optimizations', '-ftree-vectorize'] |
|
|
|
'default': ['-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math'] |
|
|
|
}, |
|
|
|
}, |
|
|
|
'debug': { |
|
|
|
'debug': { |
|
|
|
'msvc': ['/Od', '/MTd'], |
|
|
|
'msvc': ['/Od', '/MTd'], |
|
|
|