aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-11-10 12:05:47 -0800
committerDylan Baker <dylan@pnwbakers.com>2020-11-10 12:09:03 -0800
commite430c01ef51f0fabba8bd6170287c42f718e7854 (patch)
treeb31bcbbf318b68339c5ab241d2a1c2580f8fbcfc /mesonbuild
parentdffd66e0ff2d3c91003fc4c361382c473ed11cfa (diff)
downloadmeson-e430c01ef51f0fabba8bd6170287c42f718e7854.zip
meson-e430c01ef51f0fabba8bd6170287c42f718e7854.tar.gz
meson-e430c01ef51f0fabba8bd6170287c42f718e7854.tar.bz2
compilers/rust: Add vs_crt support
As far as I can Tell, rust just handles this for us (it's always worked with no special arguments from us). However, since we're going to add support for base options for rust, we need to add the method.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/compilers/rust.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/compilers/rust.py b/mesonbuild/compilers/rust.py
index 469859b..3b392ec 100644
--- a/mesonbuild/compilers/rust.py
+++ b/mesonbuild/compilers/rust.py
@@ -52,6 +52,8 @@ class RustCompiler(Compiler):
linker=linker)
self.exe_wrapper = exe_wrapper
self.id = 'rustc'
+ if 'link' in self.linker.id:
+ self.base_options.append('b_vscrt')
def needs_static_linker(self) -> bool:
return False
@@ -141,3 +143,7 @@ class RustCompiler(Compiler):
if std.value != 'none':
args.append('--edition=' + std.value)
return args
+
+ def get_crt_compile_args(self, crt_val: str, buildtype: str) -> T.List[str]:
+ # Rust handles this for us, we don't need to do anything
+ return []