summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2015-12-01 14:29:42 +0100
committerEdward Hervey <bilboed@bilboed.com>2015-12-01 14:29:42 +0100
commitcacee5b9cf566901ae46844fe8afdba089907332 (patch)
tree2e278e5cf672b5a78848a7d93054f1084467d3b4
parenta89fce35ee16967e7b85e76fb8363b96ac605b27 (diff)
config/darwin: Properly set ARCHFLAGSHEADmaster
This allows creating 'light' binaries (i.e. just one arch) when we are not targetting universal builds
-rw-r--r--config/darwin.config4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/darwin.config b/config/darwin.config
index 3ffb8a38..df98fe13 100644
--- a/config/darwin.config
+++ b/config/darwin.config
@@ -79,6 +79,10 @@ os.environ['CC'] = 'clang'
os.environ['OBJC'] = 'clang'
os.environ['CXX'] = 'clang++'
+if target_arch != Architecture.UNIVERSAL:
+ # Ensure lightweight architectures are build when only targetting one arch
+ os.environ['ARCHFLAGS'] = '-arch %s' % target_arch
+
# Link GL headers
gl_headers = os.path.join(sdk_root, 'usr', 'X11', 'include', 'GL')
if not os.path.exists(gl_headers):