diff options
| author | Daniel Mueller <deso@posteo.net> | 2017-05-29 13:58:05 -0700 | 
|---|---|---|
| committer | Daniel Mueller <deso@posteo.net> | 2017-05-29 13:58:05 -0700 | 
| commit | 436915453f7474117234aa0cedab6f97b3b3575f (patch) | |
| tree | 85c91b6f1819835712c53d67191ca1999c021366 /gcc/tests | |
| parent | 5744889d0d3a9c033913bdce499064a4760a1249 (diff) | |
| download | nitrocli-436915453f7474117234aa0cedab6f97b3b3575f.tar.gz nitrocli-436915453f7474117234aa0cedab6f97b3b3575f.tar.bz2 | |
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
Diffstat (limited to 'gcc/tests')
| -rw-r--r-- | gcc/tests/test.rs | 25 | 
1 files changed, 24 insertions, 1 deletions
| 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"); +} | 
