summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2010-03-19 21:56:34 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2010-03-19 21:56:34 (GMT)
commit7c4afcb1c4cc04d649db648c663fd50189b72034 (patch)
tree2ef3a5f0f9ea864820e7d7fb57e0b204da30a956 /Lib/distutils
parentf7239567ea354a9b0fc86daecf97bd88403c0c46 (diff)
downloadcpython-7c4afcb1c4cc04d649db648c663fd50189b72034.zip
cpython-7c4afcb1c4cc04d649db648c663fd50189b72034.tar.gz
cpython-7c4afcb1c4cc04d649db648c663fd50189b72034.tar.bz2
Fixed #2698 - now reads the compiler option when creating the compiler
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/build_ext.py2
-rw-r--r--Lib/distutils/tests/test_build_ext.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index 1596586..bd61bc5 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -310,7 +310,7 @@ class build_ext(Command):
# Setup the CCompiler object that we'll use to do all the
# compiling and linking
- self.compiler = new_compiler(compiler=None,
+ self.compiler = new_compiler(compiler=self.compiler,
verbose=self.verbose,
dry_run=self.dry_run,
force=self.force)
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py
index f992928..b7cdc20 100644
--- a/Lib/distutils/tests/test_build_ext.py
+++ b/Lib/distutils/tests/test_build_ext.py
@@ -329,6 +329,7 @@ class BuildExtTestCase(TempdirManager,
self.assertEquals(so_dir, other_tmp_dir)
cmd.inplace = 0
+ cmd.compiler = None
cmd.run()
so_file = cmd.get_outputs()[0]
self.assertTrue(os.path.exists(so_file))