-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update nixpkgs; applyPatches to fix toolchain (nixpkgs!269077)
- Loading branch information
Showing
11 changed files
with
70 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/pkgs/development/compilers/llvm/16/compiler-rt/default.nix b/pkgs/d | ||
evelopment/compilers/llvm/16/compiler-rt/default.nix | ||
index 0f15a9e12cde..a32533e5285c 100644 | ||
--- a/pkgs/development/compilers/llvm/16/compiler-rt/default.nix | ||
+++ b/pkgs/development/compilers/llvm/16/compiler-rt/default.nix | ||
@@ -130,8 +130,8 @@ stdenv.mkDerivation { | ||
# The presence of crtbegin_shared has been added and removed; it's possible | ||
# people have added/removed it to get it working on their platforms. | ||
# Try each in turn for now. | ||
- ln -s $out/lib/*/clang_rt.crtbegin-*.o $out/lib/crtbeginS.o | ||
- ln -s $out/lib/*/clang_rt.crtend-*.o $out/lib/crtendS.o | ||
+ #ln -s $out/lib/*/clang_rt.crtbegin-*.o $out/lib/crtbeginS.o | ||
+ #ln -s $out/lib/*/clang_rt.crtend-*.o $out/lib/crtendS.o | ||
ln -s $out/lib/*/clang_rt.crtbegin_shared-*.o $out/lib/crtbeginS.o | ||
ln -s $out/lib/*/clang_rt.crtend_shared-*.o $out/lib/crtendS.o | ||
'' + lib.optionalString doFakeLibgcc '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright (c) 2019-2024, see AUTHORS. Licensed under MIT License, see LICENSE. | ||
|
||
{ callPackage, nixpkgs, system }: | ||
|
||
let | ||
args = callPackage ./cross-pkgs-args.nix { }; | ||
pkgsCross-imported = import nixpkgs args; | ||
pkgsCross-patched = pkgsCross-imported.applyPatches { | ||
name = "nixpkgs-crosscompilation-patched"; | ||
src = nixpkgs; | ||
patches = [ | ||
./compiler-rt.patch | ||
./libunwind.patch | ||
]; | ||
}; | ||
pkgsCross = import pkgsCross-patched args; | ||
in | ||
pkgsCross |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/pkgs/development/compilers/llvm/16/libunwind/default.nix b/pkgs/development/compilers/llvm/16/libunwind/default.nix | ||
index 1b677a7a2c0d..6c16e869a085 100644 | ||
--- a/pkgs/development/compilers/llvm/16/libunwind/default.nix | ||
+++ b/pkgs/development/compilers/llvm/16/libunwind/default.nix | ||
@@ -49,6 +49,8 @@ stdenv.mkDerivation rec { | ||
|
||
nativeBuildInputs = [ cmake ninja python3 ]; | ||
|
||
+ LDFLAGS = "-unwindlib=none"; | ||
+ | ||
cmakeFlags = [ | ||
"-DLLVM_ENABLE_RUNTIMES=libunwind" | ||
] ++ lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters