llvm 14 lld: build with 2M stack size to fix firefox lto

This commit is contained in:
Yureka 2022-08-15 11:50:47 +02:00 committed by Yuka
parent 94cad6ec1a
commit 6485a02fb3

View File

@ -37,6 +37,7 @@ stdenv.mkDerivation rec {
cmakeFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"-DLLVM_TABLEGEN_EXE=${buildLlvmTools.llvm}/bin/llvm-tblgen"
];
LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-Wl,-z,stack-size=2097152";
outputs = [ "out" "lib" "dev" ];