Browse Source

wscript: fix arm build

pull/192/head
nillerusr 2 years ago
parent
commit
746aa8b1cc
  1. 4
      scripts/waifulib/compiler_optimizations.py
  2. 6
      wscript

4
scripts/waifulib/compiler_optimizations.py

@ -61,8 +61,8 @@ CFLAGS = { @@ -61,8 +61,8 @@ CFLAGS = {
},
'fastnative': {
'msvc': ['/O2', '/Oy', '/MT'],
'gcc': ['-Ofast', '-march=native', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer'],
'clang': ['-Ofast', '-march=native'],
'gcc': ['-O2', '-march=native', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer'],
'clang': ['-O2', '-march=native'],
'default': ['-O3']
},
'release': {

6
wscript

@ -370,13 +370,13 @@ def configure(conf): @@ -370,13 +370,13 @@ def configure(conf):
]
flags += ['-funwind-tables', '-fvisibility=default']
elif conf.env.COMPILER_CC != 'msvc' and conf.env.DEST_OS != 'darwin':
flags += ['-march=native']
elif conf.env.COMPILER_CC != 'msvc' and conf.env.DEST_OS != 'darwin' and conf.env.DEST_CPU in ['x86', 'x86_64']:
flags += ['-march=core2']
if conf.env.DEST_CPU in ['x86', 'x86_64']:
flags += ['-mfpmath=sse']
elif conf.env.DEST_CPU in ['arm', 'aarch64']:
flags += ['-fsigned-char']
flags += ['-fsigned-char', '-mfpu=neon-vfpv4']
if conf.env.DEST_OS == 'freebsd':
linkflags += ['-lexecinfo']

Loading…
Cancel
Save