]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/compile.rs
Require compiler-rt root at ../src/llvm-project/compiler-rt
[rust.git] / src / bootstrap / compile.rs
index 32ce170a5a1fe173d751eeb10cd5196d34b0f71f..f44096af6dd53bb9c7a314de2f075f54278368e3 100644 (file)
@@ -186,6 +186,8 @@ pub fn std_cargo(builder: &Builder<'_>, target: Interned<String>, cargo: &mut Ca
     // `compiler-rt` is located.
     let compiler_builtins_root = builder.src.join("src/llvm-project/compiler-rt");
     let compiler_builtins_c_feature = if compiler_builtins_root.exists() {
+        // Note that `libprofiler_builtins/build.rs` also computes this so if
+        // you're changing something here please also change that.
         cargo.env("RUST_COMPILER_RT_ROOT", &compiler_builtins_root);
         " compiler-builtins-c".to_string()
     } else {