diff options
author | Randy Eckenrode <randy@largeandhighquality.com> | 2023-07-08 07:32:32 -0600 |
---|---|---|
committer | Randy Eckenrode <randy@largeandhighquality.com> | 2023-07-08 07:33:04 -0600 |
commit | 93320f3e303824e40f5ac91ff4d1712927cae0c7 (patch) | |
tree | 65e4dafd2e11f389539556a2d523c0c54a5441df /pkgs/development/compilers/rust | |
parent | 6d9902baac037a6877087d649dbf33208629487e (diff) | |
download | nixlib-93320f3e303824e40f5ac91ff4d1712927cae0c7.tar nixlib-93320f3e303824e40f5ac91ff4d1712927cae0c7.tar.gz nixlib-93320f3e303824e40f5ac91ff4d1712927cae0c7.tar.bz2 nixlib-93320f3e303824e40f5ac91ff4d1712927cae0c7.tar.lz nixlib-93320f3e303824e40f5ac91ff4d1712927cae0c7.tar.xz nixlib-93320f3e303824e40f5ac91ff4d1712927cae0c7.tar.zst nixlib-93320f3e303824e40f5ac91ff4d1712927cae0c7.zip |
rustc: link libc++abi on Darwin
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r-- | pkgs/development/compilers/rust/rustc.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix index 4cf4bdfb3e50..7b924b9f8d4f 100644 --- a/pkgs/development/compilers/rust/rustc.nix +++ b/pkgs/development/compilers/rust/rustc.nix @@ -53,7 +53,7 @@ in stdenv.mkDerivation rec { NIX_LDFLAGS = toString ( # when linking stage1 libstd: cc: undefined reference to `__cxa_begin_catch' optional (stdenv.isLinux && !withBundledLLVM) "--push-state --as-needed -lstdc++ --pop-state" - ++ optional (stdenv.isDarwin && !withBundledLLVM) "-lc++" + ++ optional (stdenv.isDarwin && !withBundledLLVM) "-lc++ -lc++abi" ++ optional stdenv.isDarwin "-rpath ${llvmSharedForHost}/lib"); # Increase codegen units to introduce parallelism within the compiler. |