]> git.lizzy.rs Git - rust.git/blobdiff - src/libprofiler_builtins/build.rs
Require compiler-rt root at ../src/llvm-project/compiler-rt
[rust.git] / src / libprofiler_builtins / build.rs
index c990b289335046add121c2242ed4d4ea39a0a6d2..e23e2f2c1306f6a4caece4226eba825a4b9bbd63 100644 (file)
@@ -63,8 +63,9 @@ fn main() {
         cfg.define("COMPILER_RT_HAS_ATOMICS", Some("1"));
     }
 
-    let root = env::var_os("RUST_COMPILER_RT_ROOT").unwrap();
-    let root = Path::new(&root);
+    // Note that this should exist if we're going to run (otherwise we just
+    // don't build profiler builtins at all).
+    let root = Path::new("../llvm-project/compiler-rt");
 
     let src_root = root.join("lib").join("profile");
     for src in profile_sources {