stdenv: libcxxabi dropped standalone in favor of useLLVM

The libcxxabi expression had a `standalone` argument in LLVM 7 which
triggered passing of the `-DLLVM_ENABLE_LIBCXX=ON` flag. In LLVM 11 this
flag and others are toggled by the `useLLVM` attribute of
`stdenv.hostPlatform` but this toggles a flag we don't need on Darwin.

Similar to the refactoring of LLVM 7 libc++abi by Ericson2314 in
3af7e984705, I have reintroduced the standalone argument for use in
bootstrapping the Darwin stdenv.

authored by

toonn and committed by
Jonathan Ringer
1be8e73f 96876540

+3 -1
+3 -1
pkgs/development/compilers/llvm/11/libcxxabi/default.nix
··· 1 { lib, stdenv, llvm_meta, cmake, fetch, libcxx, libunwind, llvm, version 2 , enableShared ? !stdenv.hostPlatform.isStatic 3 }: 4 ··· 29 ]; 30 31 nativeBuildInputs = [ cmake ]; 32 - buildInputs = lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD && !stdenv.hostPlatform.isWasm) libunwind; 33 34 cmakeFlags = lib.optionals (stdenv.hostPlatform.useLLVM or false) [ 35 "-DLLVM_ENABLE_LIBCXX=ON"
··· 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 ··· 31 ]; 32 33 nativeBuildInputs = [ cmake ]; 34 + buildInputs = lib.optional withLibunwind libunwind; 35 36 cmakeFlags = lib.optionals (stdenv.hostPlatform.useLLVM or false) [ 37 "-DLLVM_ENABLE_LIBCXX=ON"