Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29eec66

Browse files
committed
Issue #19019: Change the OS X installer build script to use CFLAGS instead
of OPT for special build options. By setting OPT, some compiler-specific options like -fwrapv were overridden and thus not used, which could result in broken interpreters when building with clang.
1 parent 87adb6e commit 29eec66

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Mac/BuildScript/build-installer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ def buildPython():
952952
"--with-universal-archs=%s "
953953
"%s "
954954
"LDFLAGS='-g -L%s/libraries/usr/local/lib' "
955-
"OPT='-g -O3 -I%s/libraries/usr/local/include' 2>&1"%(
955+
"CFLAGS='-g -I%s/libraries/usr/local/include' 2>&1"%(
956956
shellQuote(os.path.join(SRCDIR, 'configure')), shellQuote(SDKPATH),
957957
UNIVERSALARCHS,
958958
(' ', '--with-computed-gotos ')[PYTHON_3],

Misc/NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ Build
196196
3. -sysroot and -arch flags were unnecessarily duplicated
197197
4. there was no obvious way to configure an intel-32 only build.
198198

199+
- Issue #19019: Change the OS X installer build script to use CFLAGS instead
200+
of OPT for special build options. By setting OPT, some compiler-specific
201+
options like -fwrapv were overridden and thus not used, which could result
202+
in broken interpreters when building with clang.
203+
199204
What's New in Python 3.4.0 Alpha 3?
200205
===================================
201206

0 commit comments

Comments
 (0)