Skip to content

Commit

Permalink
lld: build with 2M stack size
Browse files Browse the repository at this point in the history
Port of 6485a02 ("llvm 14 lld: build with 2M stack size to fix
firefox lto").
  • Loading branch information
alyssais committed Feb 28, 2023
1 parent ed209e6 commit 6cc523c
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/development/compilers/llvm/10/lld/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ stdenv.mkDerivation rec {
] ++ 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" ];

Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/llvm/11/lld/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ stdenv.mkDerivation rec {
] ++ 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" ];

Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/llvm/12/lld/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ stdenv.mkDerivation rec {
] ++ 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" ];

Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/llvm/13/lld/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ stdenv.mkDerivation rec {
] ++ 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" ];

Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/llvm/5/lld/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ stdenv.mkDerivation rec {
] ++ 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" ];

Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/llvm/6/lld/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ stdenv.mkDerivation rec {
] ++ 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" ];

Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/llvm/7/lld/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ stdenv.mkDerivation rec {
] ++ 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" ];

Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/llvm/8/lld/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ stdenv.mkDerivation rec {
] ++ 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" ];

Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/llvm/9/lld/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ stdenv.mkDerivation rec {
] ++ 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" ];

Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/llvm/git/lld/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ stdenv.mkDerivation rec {
] ++ 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" ];

Expand Down

0 comments on commit 6cc523c

Please sign in to comment.