diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2002-03-29 18:00:19 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2002-03-29 18:00:19 (GMT) |
commit | f4a4fb9a11804ea1e1123a2963c7275e2b9bd8f7 (patch) | |
tree | 1d334700dd0d6f7327e463fb66e810dd6b9a56fb | |
parent | 1142de3f5b5cdd26756150d880ed6f25281c6ecb (diff) | |
download | cpython-f4a4fb9a11804ea1e1123a2963c7275e2b9bd8f7.zip cpython-f4a4fb9a11804ea1e1123a2963c7275e2b9bd8f7.tar.gz cpython-f4a4fb9a11804ea1e1123a2963c7275e2b9bd8f7.tar.bz2 |
[Patch #536769] Add -Xcompiler flag for adding arguments and switches for
the compiler
-rw-r--r-- | Lib/distutils/extension.py | 2 | ||||
-rwxr-xr-x | Modules/makesetup | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Lib/distutils/extension.py b/Lib/distutils/extension.py index a31ccbc..3737712 100644 --- a/Lib/distutils/extension.py +++ b/Lib/distutils/extension.py @@ -188,6 +188,8 @@ def read_setup_file (filename): append_next_word = ext.runtime_library_dirs elif word == "-Xlinker": append_next_word = ext.extra_link_args + elif word == "-Xcompiler": + append_next_word = ext.extra_compile_args elif switch == "-u": ext.extra_link_args.append(word) if not value: diff --git a/Modules/makesetup b/Modules/makesetup index f4287a5..bc1b1b9 100755 --- a/Modules/makesetup +++ b/Modules/makesetup @@ -159,6 +159,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' | # OSX/OSXS/Darwin framework link cmd ;; -[IDUCfF]*) cpps="$cpps $arg";; + -Xcompiler) skip=cpps;; -Xlinker) libs="$libs $arg"; skip=libs;; -rpath) libs="$libs $arg"; skip=libs;; --rpath) libs="$libs $arg"; skip=libs;; |