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