summaryrefslogtreecommitdiff
path: root/giscanner/ccompiler.py
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2019-08-08 21:12:03 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2019-08-08 21:12:03 +0200
commitc1f4af2830ff636fa32c36964f7ee7f78d94824b (patch)
treebc79a0f7209340a8519be6d2f3bd30c18155da93 /giscanner/ccompiler.py
parent399afe04f7e59371e48544a0efb290e028c72756 (diff)
downloadgobject-introspection-c1f4af2830ff636fa32c36964f7ee7f78d94824b.tar.gz
ccompiler: use the distutils linker in the dumper
No need to hardcode things since distutils looks it up. Similar to !170 but for Windows.
Diffstat (limited to 'giscanner/ccompiler.py')
-rw-r--r--giscanner/ccompiler.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
index 32c92966..35549da2 100644
--- a/giscanner/ccompiler.py
+++ b/giscanner/ccompiler.py
@@ -413,6 +413,15 @@ class CCompiler(object):
", ".join(not_resolved))
return shlibs
+ @property
+ def linker_cmd(self):
+ if self.check_is_msvc():
+ if not self.compiler.initialized:
+ self.compiler.initialize()
+ return [self.compiler.linker]
+ else:
+ return self.compiler.linker_exe
+
def check_is_msvc(self):
return isinstance(self.compiler, MSVCCompiler)