···6868 ] ++ lib.optionals (stdenv.hostPlatform.useLLVM or false) [
6969 "-DLLVM_ENABLE_LIBCXX=ON"
7070 "-DLIBCXXABI_USE_LLVM_UNWINDER=ON"
7171- ] ++ lib.optionals ((stdenv.hostPlatform.useLLVM or false) ||
7272- (stdenv.hostPlatform.isDarwin && enableShared)) [
7171+ ] ++ lib.optionals ((stdenv.hostPlatform.useLLVM or false) || !stdenv.hostPlatform.isDarwin) [
7372 # libcxxabi's CMake looks as though it treats -nostdlib++ as implying -nostdlib,
7473 # but that does not appear to be the case for example when building
7574 # pkgsLLVM.libcxxabi (which uses clangNoCompilerRtWithLibc).
···6868 ] ++ lib.optionals (stdenv.hostPlatform.useLLVM or false) [
6969 "-DLLVM_ENABLE_LIBCXX=ON"
7070 "-DLIBCXXABI_USE_LLVM_UNWINDER=ON"
7171- ] ++ lib.optionals ((stdenv.hostPlatform.useLLVM or false) ||
7272- (stdenv.hostPlatform.isDarwin && enableShared)) [
7171+ ] ++ lib.optionals ((stdenv.hostPlatform.useLLVM or false) || !stdenv.hostPlatform.isDarwin) [
7372 # libcxxabi's CMake looks as though it treats -nostdlib++ as implying -nostdlib,
7473 # but that does not appear to be the case for example when building
7574 # pkgsLLVM.libcxxabi (which uses clangNoCompilerRtWithLibc).
···6868 ] ++ lib.optionals (stdenv.hostPlatform.useLLVM or false) [
6969 "-DLLVM_ENABLE_LIBCXX=ON"
7070 "-DLIBCXXABI_USE_LLVM_UNWINDER=ON"
7171- ] ++ lib.optionals ((stdenv.hostPlatform.useLLVM or false) ||
7272- (stdenv.hostPlatform.isDarwin && enableShared)) [
7171+ ] ++ lib.optionals ((stdenv.hostPlatform.useLLVM or false) || !stdenv.hostPlatform.isDarwin) [
7372 # libcxxabi's CMake looks as though it treats -nostdlib++ as implying -nostdlib,
7473 # but that does not appear to be the case for example when building
7574 # pkgsLLVM.libcxxabi (which uses clangNoCompilerRtWithLibc).