about summary refs log tree commit diff
path: root/src/liblibc
diff options
context:
space:
mode:
Diffstat (limited to 'src/liblibc')
-rw-r--r--src/liblibc/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs
index f310cd4152f..540420c0ff9 100644
--- a/src/liblibc/lib.rs
+++ b/src/liblibc/lib.rs
@@ -24,7 +24,7 @@
        html_playground_url = "https://play.rust-lang.org/",
        issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/")]
 #![cfg_attr(test, feature(test))]
-#![feature(cfg_target_vendor)]
+#![cfg_attr(not(feature = "cargo-build"), feature(cfg_target_vendor))]
 
 //! Bindings for the C standard library and other platform libraries
 //!