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

Skip to content

Commit f4a4fb9

Browse files
committed
[Patch #536769] Add -Xcompiler flag for adding arguments and switches for
the compiler
1 parent 1142de3 commit f4a4fb9

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/distutils/extension.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ def read_setup_file (filename):
188188
append_next_word = ext.runtime_library_dirs
189189
elif word == "-Xlinker":
190190
append_next_word = ext.extra_link_args
191+
elif word == "-Xcompiler":
192+
append_next_word = ext.extra_compile_args
191193
elif switch == "-u":
192194
ext.extra_link_args.append(word)
193195
if not value:

Modules/makesetup

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
159159
# OSX/OSXS/Darwin framework link cmd
160160
;;
161161
-[IDUCfF]*) cpps="$cpps $arg";;
162+
-Xcompiler) skip=cpps;;
162163
-Xlinker) libs="$libs $arg"; skip=libs;;
163164
-rpath) libs="$libs $arg"; skip=libs;;
164165
--rpath) libs="$libs $arg"; skip=libs;;

0 commit comments

Comments
 (0)