Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llvm_6, llvm_7: build all default targets #53941

Merged
merged 1 commit into from Jan 15, 2019
Merged

Conversation

orivej
Copy link
Contributor

@orivej orivej commented Jan 14, 2019

Motivation for this change

This makes LLVM tools (including dependent tools such as LLD) readily useful in
more situations, foresees such future additions as BPF and NVPTX, and brings
llvm_6 and newer on par with the current default llvm_5.

The list of targets was reduced in #52031, which was not necessary to fix cross compilation.
BPF target is needed for BCC in #53920.
out and lib size increases by 1/3, but the full LLVM is needed regardless, and this avoids having a partial LLVM.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@@ -28,9 +26,6 @@ let
shortVersion = with stdenv.lib;
concatStringsSep "." (take 1 (splitString "." release_version));

inherit
(import ../common.nix { inherit (stdenv) lib; })
llvmBackendList;
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need common.nix in that case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, indeed. Removed.

@dtzWill
Copy link
Member

dtzWill commented Jan 14, 2019 via email

@7c6f434c
Copy link
Member

Did aarch64 build succeed before?

@Mic92
Copy link
Member

Mic92 commented Jan 14, 2019

At least llvm_7 used to build on aarch64, because we are using this version for rust.

@orivej
Copy link
Contributor Author

orivej commented Jan 15, 2019

llvm_7 still builds on aarch64, but llvm_6 needs a backport of this fix: https://reviews.llvm.org/D50583. (This is similar to an older https://reviews.llvm.org/D28285.)

This makes LLVM tools (including dependent tools such as LLD) readily useful in
more situations, foresees such needed additions as BPF and NVPTX, and brings
llvm_6 and newer on par with the current default llvm_5.
@orivej
Copy link
Contributor Author

orivej commented Jan 15, 2019

@GrahamcOfBorg build llvm_6 llvm_7

@orivej-nixos orivej-nixos merged commit d6f401e into NixOS:staging Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants