diff options
author | marcelofg55 <marcelofg55@gmail.com> | 2016-05-20 17:31:30 -0300 |
---|---|---|
committer | marcelofg55 <marcelofg55@gmail.com> | 2016-05-20 17:31:30 -0300 |
commit | eeb83982e2eb4b70e43d45f9fdfe5a54f08576eb (patch) | |
tree | 7600031ef839c0508f3f3a413e8762bc655ea697 /platform/osx/detect.py | |
parent | bc8df8feaafd4e9ce0daa383f772ff111073c672 (diff) | |
download | redot-engine-eeb83982e2eb4b70e43d45f9fdfe5a54f08576eb.tar.gz |
Added 'fat' option for bits param on scons for osx, this will produce a fat binary that contains both 32 bits and 64 bits binaries
Diffstat (limited to 'platform/osx/detect.py')
-rw-r--r-- | platform/osx/detect.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py index 1f176dc22a..28bc42f6bb 100644 --- a/platform/osx/detect.py +++ b/platform/osx/detect.py @@ -68,9 +68,12 @@ def configure(env): if (env["bits"]=="64"): env.Append(CCFLAGS=['-arch', 'x86_64']) env.Append(LINKFLAGS=['-arch', 'x86_64']) - else: + elif (env["bits"]=="32"): env.Append(CCFLAGS=['-arch', 'i386']) env.Append(LINKFLAGS=['-arch', 'i386']) + else: + env.Append(CCFLAGS=['-arch', 'i386', '-arch', 'x86_64']) + env.Append(LINKFLAGS=['-arch', 'i386', '-arch', 'x86_64']) else: #osxcross build root=os.environ.get("OSXCROSS_ROOT",0) |