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 {