Skip to content

Commit b99d149

Browse files
committed
Add metadata for where compiler-rt is located
Compiler crates will need to use this!
1 parent 003f1fa commit b99d149

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ description = """
1111
Compiler intrinsics used by the Rust compiler. Also available for other targets
1212
if necessary!
1313
"""
14+
links = 'compiler-rt'
1415

1516
[lib]
1617
test = false

build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ fn main() {
44
println!("cargo:rerun-if-changed=build.rs");
55

66
let target = env::var("TARGET").unwrap();
7+
let cwd = env::current_dir().unwrap();
8+
9+
println!("cargo:compiler-rt={}", cwd.join("compiler-rt").display());
710

811
// Emscripten's runtime includes all the builtins
912
if target.contains("emscripten") {

0 commit comments

Comments
 (0)