aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-03-22 23:40:52 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-03-24 20:56:06 +0200
commit8361da5c52e880225df50d209318ef2184c2dbb9 (patch)
treed6561a9ef4edd9a76f54a23773156a9d1ac7c70c /mesonbuild/compilers
parent3037ade41dc0cfc1cb84b0a668784c8d1af46987 (diff)
downloadmeson-8361da5c52e880225df50d209318ef2184c2dbb9.zip
meson-8361da5c52e880225df50d209318ef2184c2dbb9.tar.gz
meson-8361da5c52e880225df50d209318ef2184c2dbb9.tar.bz2
Fix setup so test suite runs with rustc + MSVC. Closes: 5099
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/compilers.py1
-rw-r--r--mesonbuild/compilers/rust.py6
2 files changed, 6 insertions, 1 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index ceefefe..da02980 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -61,7 +61,6 @@ c_suffixes = lang_suffixes['c'] + ('h',)
clib_langs = ('objcpp', 'cpp', 'objc', 'c', 'fortran',)
# List of languages that can be linked with C code directly by the linker
# used in build.py:process_compilers() and build.py:get_dynamic_linker()
-# XXX: Add Rust to this?
clink_langs = ('d', 'cuda') + clib_langs
clink_suffixes = ()
for _l in clink_langs + ('vala',):
diff --git a/mesonbuild/compilers/rust.py b/mesonbuild/compilers/rust.py
index 68da823..410125a 100644
--- a/mesonbuild/compilers/rust.py
+++ b/mesonbuild/compilers/rust.py
@@ -93,3 +93,9 @@ class RustCompiler(Compiler):
break
return parameter_list
+
+ def get_buildtype_linker_args(self, build_type):
+ return []
+
+ def get_std_exe_link_args(self):
+ return []