aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-09-02 22:52:37 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2016-09-02 22:52:37 +0300
commita9da6c513281bd7c213d8d3d33c78c7ceed9dfd4 (patch)
tree427d16a3d47561291a3bd2465177133f2a187f73 /mesonbuild/compilers.py
parent36870ace0fb52ee8f2ca40c8ddb9cfb142032906 (diff)
downloadmeson-a9da6c513281bd7c213d8d3d33c78c7ceed9dfd4.zip
meson-a9da6c513281bd7c213d8d3d33c78c7ceed9dfd4.tar.gz
meson-a9da6c513281bd7c213d8d3d33c78c7ceed9dfd4.tar.bz2
Moved targets with same name into subdirs to make all tests pass.
Diffstat (limited to 'mesonbuild/compilers.py')
-rw-r--r--mesonbuild/compilers.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py
index 4738abd..8394aca 100644
--- a/mesonbuild/compilers.py
+++ b/mesonbuild/compilers.py
@@ -354,10 +354,10 @@ class Compiler():
# Some compilers (msvc) write debug info to a separate file.
# These args specify where it should be written.
- def get_compile_debugfile_args(self, rel_obj, fname_suffix):
+ def get_compile_debugfile_args(self, rel_obj):
return []
- def get_link_debugfile_args(self, rel_obj, fname_suffix):
+ def get_link_debugfile_args(self, rel_obj):
return []
class CCompiler(Compiler):
@@ -1607,15 +1607,13 @@ class VisualStudioCCompiler(CCompiler):
raise MesonException('Compiling test app failed.')
return not(warning_text in stde or warning_text in stdo)
- def get_compile_debugfile_args(self, rel_obj, name_suffix):
+ def get_compile_debugfile_args(self, rel_obj):
pdbarr = rel_obj.split('.')[:-1]
- pdbarr[-1] += name_suffix
pdbarr += ['pdb']
return ['/Fd' + '.'.join(pdbarr)]
- def get_link_debugfile_args(self, targetfile, name_suffix):
+ def get_link_debugfile_args(self, targetfile):
pdbarr = targetfile.split('.')[:-1]
- pdbarr[-1] += name_suffix
pdbarr += ['pdb']
return ['/DEBUG', '/PDB:' + '.'.join(pdbarr)]
@@ -2295,9 +2293,8 @@ class VisualStudioLinker():
def unix_compile_flags_to_native(self, args):
return args[:]
- def get_link_debugfile_args(self, targetfile, name_suffix):
+ def get_link_debugfile_args(self, targetfile):
pdbarr = targetfile.split('.')[:-1]
- pdbarr[-1] += name_suffix
pdbarr += ['pdb']
return ['/DEBUG', '/PDB:' + '.'.join(pdbarr)]
@@ -2350,5 +2347,5 @@ class ArLinker():
def unix_compile_flags_to_native(self, args):
return args[:]
- def get_link_debugfile_args(self, targetfile, suffix):
+ def get_link_debugfile_args(self, targetfile):
return []