diff options
author | Ilya Kulakov <kulakov.ilya@gmail.com> | 2013-02-24 17:26:48 +0400 |
---|---|---|
committer | Ilya Kulakov <kulakov.ilya@gmail.com> | 2013-03-09 12:57:16 +0400 |
commit | aedf87e1b505accd07eba05453711290b49f1644 (patch) | |
tree | cf1e61f7769b861194e473a08d180df3decdf3b2 /scripts | |
parent | 6a58d9267fbb966ec2060947da1c753673656d12 (diff) |
Ensure only SSE2 instructions are used.
Cura is supposed to work on at least 32bit CPU on 10.6
Such CPUs support only SSE2.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/darwin/python.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/darwin/python.rb b/scripts/darwin/python.rb index 4a12cd35b5..71e24fae13 100644 --- a/scripts/darwin/python.rb +++ b/scripts/darwin/python.rb @@ -181,7 +181,7 @@ class Python < Formula def distutils_fix_superenv(args) # To allow certain Python bindings to find brewed software: - cflags = "CFLAGS=-I#{HOMEBREW_PREFIX}/include -I#{Formula.factory('sqlite').opt_prefix}/include" + cflags = "CFLAGS=-msse2 -mno-sse3 -mno-sse4 -I#{HOMEBREW_PREFIX}/include -I#{Formula.factory('sqlite').opt_prefix}/include" ldflags = "LDFLAGS=-L#{HOMEBREW_PREFIX}/lib -L#{Formula.factory('sqlite').opt_prefix}/lib" unless MacOS::CLT.installed? # Help Python's build system (distribute/pip) to build things on Xcode-only systems @@ -210,6 +210,7 @@ class Python < Formula # building dbm using ndbm # error: /usr/include/zlib.h: No such file or directory ENV.append 'CPPFLAGS', "-I#{MacOS.sdk_path}/usr/include" unless MacOS::CLT.installed? + ENV.append_to_cflags '-msse2 -mno-sse3 -mno-sse4' # Don't use optimizations other than "-Os" here, because Python's distutils # remembers (hint: `python3-config --cflags`) and reuses them for C |