Skip to content

Commit

Permalink
Add arch arm64 to CFLAGS
Browse files Browse the repository at this point in the history
src/3rdparty/nnls/nnls.c was not cross-built for arm64 because the
arch flag was not set for .c files.
  • Loading branch information
palonso committed Nov 5, 2023
1 parent db9671f commit 2afff08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def configure(ctx):
ctx.env.LDFLAGS = ['-arch', 'i386', '-arch', 'x86_64']

if ctx.options.ARCH == 'arm64':
ctx.env.CFLAGS += ['-arch', 'arm64']
ctx.env.CXXFLAGS += ['-arch', 'arm64']
ctx.env.LINKFLAGS += ['-arch', 'arm64']
ctx.env.LDFLAGS += ['-arch', 'arm64']
Expand Down

0 comments on commit 2afff08

Please sign in to comment.