Skip to content

Commit

Permalink
lld: explain why we change the stack size on Musl
Browse files Browse the repository at this point in the history
Suggested-by: Rahul Butani <[email protected]>
  • Loading branch information
alyssais committed Feb 28, 2023
1 parent 6cc523c commit 1db7f30
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 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,8 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"-DLLVM_TABLEGEN_EXE=${buildLlvmTools.llvm}/bin/llvm-tblgen"
];

# Musl's default stack size is too small for lld to be able to link Firefox.
LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-Wl,-z,stack-size=2097152";

outputs = [ "out" "lib" "dev" ];
Expand Down
2 changes: 2 additions & 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,8 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"-DLLVM_TABLEGEN_EXE=${buildLlvmTools.llvm}/bin/llvm-tblgen"
];

# Musl's default stack size is too small for lld to be able to link Firefox.
LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-Wl,-z,stack-size=2097152";

outputs = [ "out" "lib" "dev" ];
Expand Down
2 changes: 2 additions & 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,8 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"-DLLVM_TABLEGEN_EXE=${buildLlvmTools.llvm}/bin/llvm-tblgen"
];

# Musl's default stack size is too small for lld to be able to link Firefox.
LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-Wl,-z,stack-size=2097152";

outputs = [ "out" "lib" "dev" ];
Expand Down
2 changes: 2 additions & 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,8 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"-DLLVM_TABLEGEN_EXE=${buildLlvmTools.llvm}/bin/llvm-tblgen"
];

# Musl's default stack size is too small for lld to be able to link Firefox.
LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-Wl,-z,stack-size=2097152";

outputs = [ "out" "lib" "dev" ];
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/compilers/llvm/14/lld/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ stdenv.mkDerivation rec {
cmakeFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"-DLLVM_TABLEGEN_EXE=${buildLlvmTools.llvm}/bin/llvm-tblgen"
];

# Musl's default stack size is too small for lld to be able to link Firefox.
LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-Wl,-z,stack-size=2097152";

outputs = [ "out" "lib" "dev" ];
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/compilers/llvm/15/lld/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"-DLLVM_TABLEGEN_EXE=${buildLlvmTools.llvm}/bin/llvm-tblgen"
];

# Musl's default stack size is too small for lld to be able to link Firefox.
LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-Wl,-z,stack-size=2097152";

outputs = [ "out" "lib" "dev" ];
Expand Down
2 changes: 2 additions & 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,8 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"-DLLVM_TABLEGEN_EXE=${buildLlvmTools.llvm}/bin/llvm-tblgen"
];

# Musl's default stack size is too small for lld to be able to link Firefox.
LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-Wl,-z,stack-size=2097152";

outputs = [ "out" "lib" "dev" ];
Expand Down
2 changes: 2 additions & 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,8 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"-DLLVM_TABLEGEN_EXE=${buildLlvmTools.llvm}/bin/llvm-tblgen"
];

# Musl's default stack size is too small for lld to be able to link Firefox.
LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-Wl,-z,stack-size=2097152";

outputs = [ "out" "lib" "dev" ];
Expand Down
2 changes: 2 additions & 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,8 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"-DLLVM_TABLEGEN_EXE=${buildLlvmTools.llvm}/bin/llvm-tblgen"
];

# Musl's default stack size is too small for lld to be able to link Firefox.
LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-Wl,-z,stack-size=2097152";

outputs = [ "out" "lib" "dev" ];
Expand Down
2 changes: 2 additions & 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,8 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"-DLLVM_TABLEGEN_EXE=${buildLlvmTools.llvm}/bin/llvm-tblgen"
];

# Musl's default stack size is too small for lld to be able to link Firefox.
LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-Wl,-z,stack-size=2097152";

outputs = [ "out" "lib" "dev" ];
Expand Down
2 changes: 2 additions & 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,8 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"-DLLVM_TABLEGEN_EXE=${buildLlvmTools.llvm}/bin/llvm-tblgen"
];

# Musl's default stack size is too small for lld to be able to link Firefox.
LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-Wl,-z,stack-size=2097152";

outputs = [ "out" "lib" "dev" ];
Expand Down
2 changes: 2 additions & 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,8 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"-DLLVM_TABLEGEN_EXE=${buildLlvmTools.llvm}/bin/llvm-tblgen"
];

# Musl's default stack size is too small for lld to be able to link Firefox.
LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-Wl,-z,stack-size=2097152";

outputs = [ "out" "lib" "dev" ];
Expand Down

0 comments on commit 1db7f30

Please sign in to comment.