diff --git a/wscript b/wscript index 7970f4aa6..a48d304c8 100644 --- a/wscript +++ b/wscript @@ -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']