Add metadata for where compiler-rt is located
Compiler crates will need to use this!
This commit is contained in:
parent
003f1faf4c
commit
b99d149051
|
@ -11,6 +11,7 @@ description = """
|
||||||
Compiler intrinsics used by the Rust compiler. Also available for other targets
|
Compiler intrinsics used by the Rust compiler. Also available for other targets
|
||||||
if necessary!
|
if necessary!
|
||||||
"""
|
"""
|
||||||
|
links = 'compiler-rt'
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
test = false
|
test = false
|
||||||
|
|
3
build.rs
3
build.rs
|
@ -4,6 +4,9 @@ fn main() {
|
||||||
println!("cargo:rerun-if-changed=build.rs");
|
println!("cargo:rerun-if-changed=build.rs");
|
||||||
|
|
||||||
let target = env::var("TARGET").unwrap();
|
let target = env::var("TARGET").unwrap();
|
||||||
|
let cwd = env::current_dir().unwrap();
|
||||||
|
|
||||||
|
println!("cargo:compiler-rt={}", cwd.join("compiler-rt").display());
|
||||||
|
|
||||||
// Emscripten's runtime includes all the builtins
|
// Emscripten's runtime includes all the builtins
|
||||||
if target.contains("emscripten") {
|
if target.contains("emscripten") {
|
||||||
|
|
Loading…
Reference in New Issue