diff options
author | Edward Hervey <bilboed@bilboed.com> | 2015-12-01 14:29:42 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2015-12-01 14:29:42 +0100 |
commit | cacee5b9cf566901ae46844fe8afdba089907332 (patch) | |
tree | 2e278e5cf672b5a78848a7d93054f1084467d3b4 | |
parent | a89fce35ee16967e7b85e76fb8363b96ac605b27 (diff) |
This allows creating 'light' binaries (i.e. just one arch) when we
are not targetting universal builds
-rw-r--r-- | config/darwin.config | 4 |
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): |