lib/systems: add aarch64-windows#263714
Draft
RaitoBezarius wants to merge 1 commit intoNixOS:masterfrom
Draft
Conversation
16 tasks
Building compiler-rt for aarch64-windows is possible and yield a working LLVM cross-compiler to
aarch64-windows.
Tested via:
```
NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 nix-build -E '(import <nixpkgs> { crossSystem = { config = "aarch64-windows"; libc = null; rustc.config = "aarch64-unknown-uefi"; useLLVM = true; }; }).lanzaboote-stub'
```
(can work with any UEFI binary you have at your disposal in your
nixpkgs.)
and then, you can run the UEFI result using QEMU and AArch64 UEFI binaries.
d157e24 to
6cde9bd
Compare
|
This is for building UEFI binaries, right? Just checking.
Won't LLVM accept |
Member
Author
It will, it just doesn't for now. This is a draft because no real intention to go somewhere with this, we can close. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes
Building compiler-rt for aarch64-windows is possible and yield a working LLVM cross-compiler to aarch64-windows.
You
Tested via:
(works with any proper UEFI package that you have at your disposal in your tree, note: I said proper UEFI package, not systemd-boot ELF hackery or GNU-EFI.)
and then, you can run the UEFI result using QEMU and AArch64 UEFI binaries.
Some questions remains if this is viable approach on actual hardware.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)