diff options
-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): |