aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rust/allow-crt-static-on-stable.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-04-08 23:53:16 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-04-09 15:41:28 +0200
commit60dcefecf12e7926c72ac932e8aaf1d1945341e5 (patch)
tree053144b2094fbaa999eccddc7b8bb25f5e445f01 /testing/rust/allow-crt-static-on-stable.patch
parent2da58e99823d6c81ca41dbc3d8334a47a10af5ea (diff)
downloadaports-60dcefecf12e7926c72ac932e8aaf1d1945341e5.tar.bz2
aports-60dcefecf12e7926c72ac932e8aaf1d1945341e5.tar.xz
testing/rust: add check for static/dynamic PIC
Diffstat (limited to 'testing/rust/allow-crt-static-on-stable.patch')
-rw-r--r--testing/rust/allow-crt-static-on-stable.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/rust/allow-crt-static-on-stable.patch b/testing/rust/allow-crt-static-on-stable.patch
index c193c0c0ac..2646b3ef94 100644
--- a/testing/rust/allow-crt-static-on-stable.patch
+++ b/testing/rust/allow-crt-static-on-stable.patch
@@ -30,3 +30,12 @@ Build dynamically linked binary with rustc or cargo:
}
return crt_static;
+--- a/src/test/compile-fail/crt-static-gated.rs
++++ b/src/test/compile-fail/crt-static-gated.rs
+@@ -10,5 +10,6 @@
+
+ // compile-flags:-C target-feature=+crt-static
+ // error-pattern: specifying the `crt-static` target feature is only allowed
++// ignore-test we just want this feature and no one will stop us!
+
+ fn main() {}