Skip to content
Snippets Groups Projects
Commit 7aef3200 authored by James Snyder's avatar James Snyder Committed by Andreas Klöckner
Browse files

On MacOS X platforms, force 10.6 SDK & architecture to x86_64 + i386.

parent 31b23cc9
No related branches found
Tags v0.90.4
No related merge requests found
......@@ -56,6 +56,18 @@ def main():
import sys
if 'darwin' in sys.platform:
# Build for i386 & x86_64 since OpenCL doesn't run on PPC
if "-arch" not in conf["CXXFLAGS"]:
conf["CXXFLAGS"].extend(['-arch', 'i386'])
conf["CXXFLAGS"].extend(['-arch', 'x86_64'])
if "-arch" not in conf["LDFLAGS"]:
conf["LDFLAGS"].extend(['-arch', 'i386'])
conf["LDFLAGS"].extend(['-arch', 'x86_64'])
# Compile against 10.6 SDK, first to support OpenCL
conf["CXXFLAGS"].extend(['-isysroot', '/Developer/SDKs/MacOSX10.6.sdk'])
conf["LDFLAGS"].extend(['-isysroot', '/Developer/SDKs/MacOSX10.6.sdk'])
ext_kwargs = dict()
ver_dic = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment