Skip to content

Commit

Permalink
wscript: fix arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
nillerusr committed Feb 6, 2023
1 parent 0ffcbff commit 746aa8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/waifulib/compiler_optimizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
},
'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': {
Expand Down
6 changes: 3 additions & 3 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 746aa8b

Please sign in to comment.