aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/compilers.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 137b3f7..8adacef 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -1439,6 +1439,16 @@ class GnuLikeCompiler(abc.ABC):
def gnu_symbol_visibility_args(self, vistype):
return gnu_symbol_visibility_args[vistype]
+ def gen_vs_module_defs_args(self, defsfile):
+ if not isinstance(defsfile, str):
+ raise RuntimeError('Module definitions file should be str')
+ # On Windows targets, .def files may be specified on the linker command
+ # line like an object file.
+ if self.compiler_type.is_windows_compiler:
+ return [defsfile]
+ # For other targets, discard the .def file.
+ return []
+
class GnuCompiler(GnuLikeCompiler):
"""
@@ -1477,16 +1487,6 @@ class GnuCompiler(GnuLikeCompiler):
def get_pch_suffix(self):
return 'gch'
- def gen_vs_module_defs_args(self, defsfile):
- if not isinstance(defsfile, str):
- raise RuntimeError('Module definitions file should be str')
- # On Windows targets, .def files may be specified on the linker command
- # line like an object file.
- if self.compiler_type.is_windows_compiler:
- return [defsfile]
- # For other targets, discard the .def file.
- return []
-
def get_gui_app_args(self, value):
if self.compiler_type.is_windows_compiler and value:
return ['-mwindows']