From 436915453f7474117234aa0cedab6f97b3b3575f Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Mon, 29 May 2017 13:58:05 -0700 Subject: Update gcc crate to 0.3.48 The 'gcc' create got a couple of updates. This change imports the new code and bumps the version to use. Import subrepo gcc/:gcc at 6b41873be3172415efcadbff1187a3ff42428943 --- gcc/tests/test.rs | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'gcc/tests/test.rs') diff --git a/gcc/tests/test.rs b/gcc/tests/test.rs index 1c51e09..8fda3ed 100644 --- a/gcc/tests/test.rs +++ b/gcc/tests/test.rs @@ -180,7 +180,8 @@ fn msvc_smoke() { .must_have("/O2") .must_have("foo.c") .must_not_have("/Z7") - .must_have("/c"); + .must_have("/c") + .must_have("/MD"); test.cmd(1).must_have(test.td.path().join("foo.o")); } @@ -227,3 +228,25 @@ fn msvc_define() { test.cmd(0).must_have("/DFOO=bar").must_have("/DBAR"); } + +#[test] +fn msvc_static_crt() { + let test = Test::msvc(); + test.gcc() + .static_crt(true) + .file("foo.c") + .compile("libfoo.a"); + + test.cmd(0).must_have("/MT"); +} + +#[test] +fn msvc_no_static_crt() { + let test = Test::msvc(); + test.gcc() + .static_crt(false) + .file("foo.c") + .compile("libfoo.a"); + + test.cmd(0).must_have("/MD"); +} -- cgit v1.2.1