mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
lua-language-server: fix build with clang 12+
Work around https://github.com/NixOS/nixpkgs/issues/166205.
This commit is contained in:
parent
6104170b8c
commit
3e729ac6b5
|
@ -43,6 +43,11 @@ stdenv.mkDerivation rec {
|
||||||
-e '/cxx_/s,$cc,clang++,'
|
-e '/cxx_/s,$cc,clang++,'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Work around https://github.com/NixOS/nixpkgs/issues/166205.
|
||||||
|
env = lib.optionalAttrs stdenv.cc.isClang {
|
||||||
|
NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
|
||||||
|
};
|
||||||
|
|
||||||
ninjaFlags = [
|
ninjaFlags = [
|
||||||
"-fcompile/ninja/${if stdenv.isDarwin then "macos" else "linux"}.ninja"
|
"-fcompile/ninja/${if stdenv.isDarwin then "macos" else "linux"}.ninja"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue