diff options
Diffstat (limited to 'giscanner/ccompiler.py')
-rw-r--r-- | giscanner/ccompiler.py | 9 |
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) |