diff options
| author | Sébastien Marie <semarie@users.noreply.github.com> | 2017-11-26 10:08:25 +0100 |
|---|---|---|
| committer | Sébastien Marie <semarie@users.noreply.github.com> | 2017-11-26 10:08:25 +0100 |
| commit | 3ef39d3cb6e480aafefef083fa656cb592d56e55 (patch) | |
| tree | 30dff541d6f7dbf89bea836d0cc5a894b97db182 /src/librustc_llvm | |
| parent | 2f84fb5cc1ac5f04bdf5a281997e02bcf4fc18d9 (diff) | |
| download | rust-3ef39d3cb6e480aafefef083fa656cb592d56e55.tar.gz rust-3ef39d3cb6e480aafefef083fa656cb592d56e55.zip | |
make OpenBSD to use libc++ instead of (e)stdc++
Diffstat (limited to 'src/librustc_llvm')
| -rw-r--r-- | src/librustc_llvm/build.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_llvm/build.rs b/src/librustc_llvm/build.rs index 75efe135f65..141a9a8d704 100644 --- a/src/librustc_llvm/build.rs +++ b/src/librustc_llvm/build.rs @@ -252,8 +252,8 @@ fn main() { let llvm_static_stdcpp = env::var_os("LLVM_STATIC_STDCPP"); let stdcppname = if target.contains("openbsd") { - // OpenBSD has a particular C++ runtime library name - "estdc++" + // llvm-config on OpenBSD doesn't mention stdlib=libc++ + "c++" } else if target.contains("netbsd") && llvm_static_stdcpp.is_some() { // NetBSD uses a separate library when relocation is required "stdc++_pic" |
