Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Randy Eckenrode <randy@largeandhighquality.com>
  • Loading branch information
pwaller and reckenrode committed Aug 3, 2023
1 parent f453d76 commit fc85058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pkgs/development/compilers/llvm/16/libcxx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ninja python3 ]
++ lib.optional stdenv.isDarwin fixDarwinDylibNames;

buildInputs = (
lib.optional (!headersOnly) cxxabi ++
lib.optional ((stdenv.hostPlatform.useLLVM or false) && !stdenv.isDarwin) libunwind
buildInputs = lib.optionals (!headersOnly) [ cxxabi ]
++ lib.optionals (stdenv.hostPlatform.useLLVM or false) [ libunwind ]
);

cmakeFlags = let
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/compilers/llvm/16/libcxxabi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ stdenv.mkDerivation rec {
"-DCMAKE_CXX_COMPILER_WORKS=ON"
] ++ lib.optionals (stdenv.hostPlatform.useLLVM or false) [
"-DLLVM_ENABLE_LIBCXX=ON"
] ++ lib.optionals (!stdenv.isDarwin) [
"-DLIBCXXABI_USE_LLVM_UNWINDER=ON"
] ++ lib.optionals stdenv.hostPlatform.isWasm [
"-DLIBCXXABI_ENABLE_THREADS=OFF"
Expand Down

0 comments on commit fc85058

Please sign in to comment.