From 6485a02fb3ca5c799cd0676856cdb1f271f32272 Mon Sep 17 00:00:00 2001 From: Yureka Date: Mon, 15 Aug 2022 11:50:47 +0200 Subject: [PATCH] llvm 14 lld: build with 2M stack size to fix firefox lto --- pkgs/development/compilers/llvm/14/lld/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/compilers/llvm/14/lld/default.nix b/pkgs/development/compilers/llvm/14/lld/default.nix index 1ae6d4ea6fceb..2e0d893c7febe 100644 --- a/pkgs/development/compilers/llvm/14/lld/default.nix +++ b/pkgs/development/compilers/llvm/14/lld/default.nix @@ -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" ];