mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 22:27:05 +00:00
wscript: fix arm build
This commit is contained in:
parent
0ffcbff303
commit
746aa8b1cc
@ -61,8 +61,8 @@ CFLAGS = {
|
|||||||
},
|
},
|
||||||
'fastnative': {
|
'fastnative': {
|
||||||
'msvc': ['/O2', '/Oy', '/MT'],
|
'msvc': ['/O2', '/Oy', '/MT'],
|
||||||
'gcc': ['-Ofast', '-march=native', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer'],
|
'gcc': ['-O2', '-march=native', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer'],
|
||||||
'clang': ['-Ofast', '-march=native'],
|
'clang': ['-O2', '-march=native'],
|
||||||
'default': ['-O3']
|
'default': ['-O3']
|
||||||
},
|
},
|
||||||
'release': {
|
'release': {
|
||||||
|
6
wscript
6
wscript
@ -370,13 +370,13 @@ def configure(conf):
|
|||||||
]
|
]
|
||||||
|
|
||||||
flags += ['-funwind-tables', '-fvisibility=default']
|
flags += ['-funwind-tables', '-fvisibility=default']
|
||||||
elif conf.env.COMPILER_CC != 'msvc' and conf.env.DEST_OS != 'darwin':
|
elif conf.env.COMPILER_CC != 'msvc' and conf.env.DEST_OS != 'darwin' and conf.env.DEST_CPU in ['x86', 'x86_64']:
|
||||||
flags += ['-march=native']
|
flags += ['-march=core2']
|
||||||
|
|
||||||
if conf.env.DEST_CPU in ['x86', 'x86_64']:
|
if conf.env.DEST_CPU in ['x86', 'x86_64']:
|
||||||
flags += ['-mfpmath=sse']
|
flags += ['-mfpmath=sse']
|
||||||
elif conf.env.DEST_CPU in ['arm', 'aarch64']:
|
elif conf.env.DEST_CPU in ['arm', 'aarch64']:
|
||||||
flags += ['-fsigned-char']
|
flags += ['-fsigned-char', '-mfpu=neon-vfpv4']
|
||||||
|
|
||||||
if conf.env.DEST_OS == 'freebsd':
|
if conf.env.DEST_OS == 'freebsd':
|
||||||
linkflags += ['-lexecinfo']
|
linkflags += ['-lexecinfo']
|
||||||
|
Loading…
Reference in New Issue
Block a user