mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-29 16:24:16 +00:00
scripts: waifulib: compiler_optimizations: allow -fno-semantic-interposition for GCC (less overhead on PIC binaries)
This commit is contained in:
parent
c54e1625d1
commit
5ab7d09a00
@ -64,20 +64,21 @@ CFLAGS = {
|
|||||||
'msvc': ['/O2', '/Oy', '/Zi'],
|
'msvc': ['/O2', '/Oy', '/Zi'],
|
||||||
'gcc': {
|
'gcc': {
|
||||||
'3': ['-O3', '-fomit-frame-pointer'],
|
'3': ['-O3', '-fomit-frame-pointer'],
|
||||||
'default': ['-Ofast', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer']
|
'default': ['-Ofast', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer', '-fno-semantic-interposition']
|
||||||
},
|
},
|
||||||
'clang': ['-Ofast'],
|
'clang': ['-Ofast'],
|
||||||
'default': ['-O3']
|
'default': ['-O3']
|
||||||
},
|
},
|
||||||
'fastnative': {
|
'fastnative': {
|
||||||
'msvc': ['/O2', '/Oy', '/Zi'],
|
'msvc': ['/O2', '/Oy', '/Zi'],
|
||||||
'gcc': ['-Ofast', '-march=native', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer'],
|
'gcc': ['-Ofast', '-march=native', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer', '-fno-semantic-interposition'],
|
||||||
'clang': ['-Ofast', '-march=native'],
|
'clang': ['-Ofast', '-march=native'],
|
||||||
'default': ['-O3']
|
'default': ['-O3']
|
||||||
},
|
},
|
||||||
'release': {
|
'release': {
|
||||||
'msvc': ['/O2', '/Zi'],
|
'msvc': ['/O2', '/Zi'],
|
||||||
'owcc': ['-O3', '-foptimize-sibling-calls', '-fomit-leaf-frame-pointer', '-fomit-frame-pointer', '-fschedule-insns', '-funsafe-math-optimizations', '-funroll-loops', '-frerun-optimizer', '-finline-functions', '-finline-limit=512', '-fguess-branch-probability', '-fno-strict-aliasing', '-floop-optimize'],
|
'owcc': ['-O3', '-foptimize-sibling-calls', '-fomit-leaf-frame-pointer', '-fomit-frame-pointer', '-fschedule-insns', '-funsafe-math-optimizations', '-funroll-loops', '-frerun-optimizer', '-finline-functions', '-finline-limit=512', '-fguess-branch-probability', '-fno-strict-aliasing', '-floop-optimize'],
|
||||||
|
'gcc': ['-O3', '-fno-semantic-interposition'],
|
||||||
'default': ['-O3']
|
'default': ['-O3']
|
||||||
},
|
},
|
||||||
'debug': {
|
'debug': {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user