blob: baea274356e0f3eb57b2a8da1ac35858d2ce5a6f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- bootloader/wscript.orig 2018-09-22 05:02:42 UTC
+++ bootloader/wscript
@@ -361,7 +361,7 @@ def set_arch_flags(ctx):
# or vice versa or with manually choosen --target-arch.
# Option -m32/-m64 has to be passed to cflags and linkflages.
elif ctx.env.PYI_ARCH == '32bit':
- if machine() in ('arm', 'aarch') and ctx.env.DEST_OS == 'linux':
+ if ctx.env.CC_NAME == "gcc":
# It was reported that flag '-m32' does not work with gcc
# on 32-bit arm Linux. So skip the -m32 flag.
pass
@@ -377,7 +377,7 @@ def set_arch_flags(ctx):
if ctx.env.DEST_OS == 'win32':
ctx.env.append_value('LINKFLAGS', '-Wl,--large-address-aware')
elif ctx.env.PYI_ARCH == '64bit':
- if machine() in ('arm', 'aarch') and ctx.env.DEST_OS == 'linux':
+ if ctx.env.CC_NAME == 'gcc':
# flag '-m64' does not work with gcc on 64-bit arm/aarch Linux.
pass
else:
|