-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
[22.11] Backport llvmPackages_16 #230327
[22.11] Backport llvmPackages_16 #230327
Commits on May 6, 2023
-
(cherry picked from commit 2c627d9) Reason: This backport is required for building Chromium on NixOS 22.11 (we need the most recent versions for important security fixes).
Configuration menu - View commit details
-
Copy full SHA for 48ee6cd - Browse repository at this point
Copy the full SHA 48ee6cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 347836e - Browse repository at this point
Copy the full SHA 347836eView commit details -
llvmPackages_16.llvm: fix build on armv7l-linux
(cherry picked from commit d4c2564)
Configuration menu - View commit details
-
Copy full SHA for f16034c - Browse repository at this point
Copy the full SHA f16034cView commit details -
llvmPackages_16.llvm: fix postPatch on darwin
(cherry picked from commit 3c7fba2)
Configuration menu - View commit details
-
Copy full SHA for b9e782d - Browse repository at this point
Copy the full SHA b9e782dView commit details -
llvmPackages_16.llvm: avoid calling roundevenf on darwin
(cherry picked from commit fd155c2)
Configuration menu - View commit details
-
Copy full SHA for 310db76 - Browse repository at this point
Copy the full SHA 310db76View commit details -
libcxxrt: init at unstable-2022-08-08
(cherry picked from commit c672de3) Reason: This is required for llvmPackages_16 (and llvmPackages_15). Only if stdenv.hostPlatform.isFreeBSD but backporting new packages is fine and so that everything evaluates without errors.
Configuration menu - View commit details
-
Copy full SHA for e9d8836 - Browse repository at this point
Copy the full SHA e9d8836View commit details -
llvmPackages_16: Drop platforms.{power,s390x} from meta.platforms
This code is backported from nixos-unstable (2c627d9) and the power platform isn't defined/supported on NixOS 22.11 yet, e.g.: ``` $ nix-instantiate -A llvmPackages_16 error: attribute 'power' missing at /home/michael/nixpkgs/worktrees/22.11/pkgs/development/compilers/llvm/16/default.nix:96:7: 95| lib.platforms.mips ++ 96| lib.platforms.power ++ | ^ 97| lib.platforms.riscv ++ (use '--show-trace' to show detailed location information) ```
Configuration menu - View commit details
-
Copy full SHA for cf48cb9 - Browse repository at this point
Copy the full SHA cf48cb9View commit details -
llvm: Backport a patch that is required for llvmPackages_16
This comes from eb2eafd (or rather [0]). I only backported the patch instead of the whole commit to avoid mass rebuilds for llvmPackages 13 and 14 (there is a small diff in the patches due to the headers ("index" and the line numbers)). This fixes: ``` error (ignored): error: end of string reached error: getting status of 'pkgs/development/compilers/llvm/common/clang/add-nostdlibinc-flag.patch': No such file or directory ``` [0]: pkgs/development/compilers/llvm/git/clang/add-nostdlibinc-flag.patch
Configuration menu - View commit details
-
Copy full SHA for 168ba05 - Browse repository at this point
Copy the full SHA 168ba05View commit details -
llvmPackages_16: Fix an evaluation error from setting NIX_CFLAGS_COMPILE
This code is backported from nixos-unstable (2c627d9) and isn't fully compatible with NixOS 22.11 due to other missing abstractions/changes. I simply went with the exact same code as the other llvmPackages already use here. This fixes the following error: ``` error: cannot coerce a set to a string at pkgs/development/compilers/llvm/16/compiler-rt/default.nix:34:3: 33| 34| env.NIX_CFLAGS_COMPILE = toString [ | ^ 35| "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" ```
Configuration menu - View commit details
-
Copy full SHA for 2cdddaa - Browse repository at this point
Copy the full SHA 2cdddaaView commit details