From 282506f7d1ef1c14cb922d6fde4b2dd52e03affa Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Tue, 1 Jan 2019 18:34:02 -0800 Subject: Update cc crate to 1.0.28 This change updates the cc crate to version 1.0.28. Import subrepo cc/:cc at 9490b5ecb43b8b926f96a7e484fa83e39620d8e5 --- cc/tests/test.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cc/tests') 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 @@ -197,6 +197,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(); -- cgit v1.2.3