summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/extension.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2002-03-29 18:00:19 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2002-03-29 18:00:19 (GMT)
commitf4a4fb9a11804ea1e1123a2963c7275e2b9bd8f7 (patch)
tree1d334700dd0d6f7327e463fb66e810dd6b9a56fb /Lib/distutils/extension.py
parent1142de3f5b5cdd26756150d880ed6f25281c6ecb (diff)
downloadcpython-f4a4fb9a11804ea1e1123a2963c7275e2b9bd8f7.zip
cpython-f4a4fb9a11804ea1e1123a2963c7275e2b9bd8f7.tar.gz
cpython-f4a4fb9a11804ea1e1123a2963c7275e2b9bd8f7.tar.bz2
[Patch #536769] Add -Xcompiler flag for adding arguments and switches for
the compiler
Diffstat (limited to 'Lib/distutils/extension.py')
-rw-r--r--Lib/distutils/extension.py2
1 files changed, 2 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: