diff options
author | Daniel Mueller <deso@posteo.net> | 2019-01-01 18:34:02 -0800 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-01-01 18:34:02 -0800 |
commit | 282506f7d1ef1c14cb922d6fde4b2dd52e03affa (patch) | |
tree | 7c51b4715f010bd95ba64d87c0cd2cc81199a729 /cc/tests/test.rs | |
parent | 097ee0ae905f1c0c09b21b30eafb421392aaef75 (diff) | |
download | nitrocli-282506f7d1ef1c14cb922d6fde4b2dd52e03affa.tar.gz nitrocli-282506f7d1ef1c14cb922d6fde4b2dd52e03affa.tar.bz2 |
Update cc crate to 1.0.28
This change updates the cc crate to version 1.0.28.
Import subrepo cc/:cc at 9490b5ecb43b8b926f96a7e484fa83e39620d8e5
Diffstat (limited to 'cc/tests/test.rs')
-rw-r--r-- | cc/tests/test.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cc/tests/test.rs b/cc/tests/test.rs index 820072f..573a99a 100644 --- a/cc/tests/test.rs +++ b/cc/tests/test.rs @@ -198,6 +198,20 @@ fn gnu_i686_pic() { } #[test] +fn gnu_x86_64_no_plt() { + let target = "x86_64-unknown-linux-gnu"; + let test = Test::gnu(); + test.gcc() + .pic(true) + .use_plt(false) + .target(&target) + .host(&target) + .file("foo.c") + .compile("foo"); + test.cmd(0).must_have("-fno-plt"); +} + +#[test] fn gnu_set_stdlib() { let test = Test::gnu(); test.gcc() |