Skip to content

Commit

Permalink
Fix failing cfht tests on Linux aarch64 with gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Wittgen committed Apr 12, 2022
1 parent f3933af commit 089aced
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ uname = os.uname()
if uname.sysname == 'Darwin' and uname.machine == 'arm64':
flags.append('-faligned-allocation')

# fix failing cfht tests on Linux aarch64 with gcc
if uname.sysname == 'Linux' and uname.machine == 'aarch64':
flags.append('-fno-expensive-optimizations')

for flag in flags:
env["CFLAGS"].append(flag)
env["CXXFLAGS"].append(flag)
Expand Down

0 comments on commit 089aced

Please sign in to comment.