Line 0
Link Here
|
|
|
1 |
--- src/librustc_llvm/build.rs.orig 2019-12-16 15:38:05 UTC |
2 |
+++ src/librustc_llvm/build.rs |
3 |
@@ -273,7 +273,14 @@ fn main() { |
4 |
}; |
5 |
|
6 |
// C++ runtime library |
7 |
- if !target.contains("msvc") { |
8 |
+ if target == "powerpc64-unknown-freebsd" { |
9 |
+ if is_crossed { |
10 |
+ println!("cargo:rustc-link-search=native=%WRKDIR%/usr/local/lib/%CC%"); |
11 |
+ } else { |
12 |
+ println!("cargo:rustc-link-search=native=/usr/local/lib/%CC%"); |
13 |
+ } |
14 |
+ println!("cargo:rustc-link-lib=static=stdc++"); |
15 |
+ } else if !target.contains("msvc") { |
16 |
if let Some(s) = llvm_static_stdcpp { |
17 |
assert!(!cxxflags.contains("stdlib=libc++")); |
18 |
let path = PathBuf::from(s); |