Fixed #2698 - now reads the compiler option when creating the compiler
This commit is contained in:
parent
f7239567ea
commit
7c4afcb1c4
|
@ -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)
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue