Skip to content

lib.systems.doubles: add aarch64-windows double#335067

Merged
Ericson2314 merged 8 commits intoNixOS:masterfrom
getchoo-contrib:lib/systems/aarch64-windows
Nov 7, 2024
Merged

lib.systems.doubles: add aarch64-windows double#335067
Ericson2314 merged 8 commits intoNixOS:masterfrom
getchoo-contrib:lib/systems/aarch64-windows

Conversation

@getchoo
Copy link
Member

@getchoo getchoo commented Aug 16, 2024

Description of changes

This introduces initial support for cross compiling to Windows on Arm in nixpkgs

It adds a new example system (and pkgsCross target) in ucrtAarch64. It is modeled after MSYS2's CLANGARM64 environment, which is based on LLVM. Windows-specific fixes for a few LLVM packages have been applied due to this

Currently stdenv.cc builds but doesn't seem to work all too well -- hello errors out early, reporting C compiler cannot create executables. Help would be appreciated here!

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added 6.topic: lib The Nixpkgs function library 6.topic: llvm/clang Issues related to llvmPackages, clangStdenv and related labels Aug 16, 2024
@getchoo
Copy link
Member Author

getchoo commented Aug 16, 2024

image

@getchoo getchoo force-pushed the lib/systems/aarch64-windows branch from 3f6ac31 to 9fc8505 Compare August 16, 2024 10:28
@getchoo getchoo requested a review from infinisil as a code owner August 16, 2024 10:28
Copy link
Member

@alyssais alyssais left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice. Thanks for keeping the commits so small and easy to read!

@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Aug 16, 2024
@getchoo getchoo force-pushed the lib/systems/aarch64-windows branch 2 times, most recently from 7cceda9 to 4360f77 Compare August 16, 2024 21:38
@getchoo
Copy link
Member Author

getchoo commented Aug 16, 2024

Resolved a merge conflict from #334470

@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Sep 10, 2024
@Scrumplex Scrumplex requested a review from alyssais November 3, 2024 18:44
@getchoo getchoo force-pushed the lib/systems/aarch64-windows branch from 4360f77 to fb917de Compare November 6, 2024 22:30
@getchoo getchoo removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 6, 2024
@Ericson2314
Copy link
Member

Oh very cool!

Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic work!!

@Ericson2314 Ericson2314 dismissed alyssais’s stale review November 7, 2024 15:07

Everything was addressed

@Ericson2314 Ericson2314 merged commit e05973a into NixOS:master Nov 7, 2024
@getchoo getchoo deleted the lib/systems/aarch64-windows branch November 7, 2024 16:53
@HurricanePootis
Copy link
Contributor

@getchoo awesome project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: lib The Nixpkgs function library 6.topic: llvm/clang Issues related to llvmPackages, clangStdenv and related 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants