llvmPackages_11.libcxxabi: More precise libunwind inclusion

authored by

toonn and committed by
Jonathan Ringer
d964f211 24dd96eb

+2 -1
+2 -1
pkgs/development/compilers/llvm/11/libcxxabi/default.nix
··· 1 1 { lib, stdenv, llvm_meta, cmake, fetch, libcxx, libunwind, llvm, version 2 + , enableShared ? !stdenv.hostPlatform.isStatic 2 3 , standalone ? stdenv.hostPlatform.useLLVM or false 3 4 , withLibunwind ? !stdenv.isDarwin && !stdenv.isFreeBSD && !stdenv.hostPlatform.isWasm 4 - , enableShared ? !stdenv.hostPlatform.isStatic 5 5 }: 6 6 7 7 stdenv.mkDerivation { ··· 35 35 36 36 cmakeFlags = lib.optionals standalone [ 37 37 "-DLLVM_ENABLE_LIBCXX=ON" 38 + ] ++ lib.optionals (standalone && withLibunwind) [ 38 39 "-DLIBCXXABI_USE_LLVM_UNWINDER=ON" 39 40 ] ++ lib.optionals stdenv.hostPlatform.isWasm [ 40 41 "-DLIBCXXABI_ENABLE_THREADS=OFF"