Commit Graph

631 Commits

Author SHA1 Message Date
blenderfreaky
f86a07aba8 llvmPackages.libclc: replace lib.optional with lib.optionals 2025-08-29 21:45:56 +02:00
blenderfreaky
fd261cb094 llvmPackages_{20,21}.libclc: reenable and update patches 2025-08-29 21:45:56 +02:00
Yuriy Taraday
b0ce3dc09f stdenv: Add CPE fields to meta
Add `identifiers` attr to `meta` attribute with following attrs:
* `cpe` with the full CPE string when available
* `possibleCPEs` with the list of potential CPEs when not all
  information is provided
* `cpeParts` with the destructured CPE string, allowing to override it
  whenever needed
* `v1` attribute set with `cpe` and `cpeParts` from above and a
  guarantee of a backwards-compatible interface

Related issue: https://github.com/NixOS/nixpkgs/issues/354012
2025-08-29 15:40:03 +02:00
nixpkgs-ci[bot]
b4d7d83861 Merge staging-next into staging 2025-08-27 18:06:13 +00:00
Tristan Ross
2e8a2ab9e3 llvmPackages_git: 22.0.0-unstable-2025-08-17 -> 22.0.0-unstable-2025-08-24 2025-08-27 19:22:20 +02:00
Peder Bergebakken Sundt
387c44658f treewide: remove unused ... from package lambdas
located with `rg '^ *\.\.\.$' -tnix -l pkgs | xargs grep @ -L | grep -E '/(default|package)\.nix$'`
2025-08-27 17:40:18 +02:00
nixpkgs-ci[bot]
be84761ecf Merge staging-next into staging 2025-08-25 00:18:14 +00:00
Weijia Wang
053accab73 llvmPackages_21.lldbPlugins.llef: 1.2.1 -> 2.0.0 (#432042) 2025-08-24 20:09:33 +02:00
Vladimír Čunát
7f3ba72e24 Merge branch 'master' into staging 2025-08-23 11:39:22 +02:00
K900
e9a7500b70 Merge remote-tracking branch 'origin/master' into staging-next 2025-08-23 09:24:59 +03:00
acture
8c68eb9711 flang: init at 20.x 2025-08-22 20:16:20 +02:00
R. Ryantm
7bc86a44d0 llvmPackages_21.lldbPlugins.llef: 1.2.1 -> 2.0.0 2025-08-08 15:58:52 +00:00
Emily
cbe92242d0 llvmPackages.tblgen: only install the tools we use
Otherwise we install a weird `update_core_linalg_named_ops.sh`
maintainer script that refers to the build directory.

There are explicit install targets for some of these and probably
better ways we could install the others, but the Clang derivation
also just explicitly copies a bunch of them, so meh.
2025-08-05 19:25:19 +01:00
nixpkgs-ci[bot]
a482dd935d Merge staging-next into staging 2025-07-30 18:07:01 +00:00
Alyssa Ross
cfb6649fa7 llvmPackages: drop libclc attributes that error
libclc requires a compatible version of spirv-llvm-translator.  If we
don't have such a version, we get an eval error.  This means that
OfBorg builds of llvmPackages sets where libclc is unavailable will
produce an eval error, which is very confusing.  To fix this, restrict
the libclc attribute to LLVM versions where it actually exists.

Link: https://github.com/NixOS/nixpkgs/pull/414615#issuecomment-3126935312
2025-07-30 14:27:27 +02:00
misuzu
dc6b7b62b8 llvmPackages_20.llvm: always apply riscv64-specific patch 2025-07-29 14:23:20 +02:00
misuzu
a1f4939394 llvmPackages_20.llvm: fix test failure on riscv64 2025-07-29 14:01:10 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
mivorasu
1e377fedf7 treewide: strip trailing punctuation from description strings 2025-07-22 19:09:42 +00:00
Tristan Ross
cfff3ec44a llvmPackages_{21: init from 21.1.0-rc1,git: 21.0.0-unstable-2025-07-12 -> 22.0.0-unstable-2025-07-17} (#426014) 2025-07-20 20:31:45 -07:00
Greg Hellings
33e9d4f3c0 libunwind: fix dangling symlink errors
Windows ucrt for aarch64 crossPkgs fail building because of the dangling
symlinks this code introduces
2025-07-19 18:17:08 +02:00
Weijia Wang
9be70d9ad1 llvmPackages.llvm: drop a test on loongarch64 2025-07-19 18:09:20 +02:00
Tristan Ross
a041bf2656 llvmPackages_{21: init from 21.1.0-rc1,git: 21.0.0-unstable-2025-07-12 -> 22.0.0-unstable-2025-07-17} 2025-07-17 14:41:42 -07:00
Peter Collingbourne
8dc663ea18 llvmPackages.clang: embed resource directory in Clang libraries
When Clang is statically linked against other programs they are unable to
find the headers in Clang's resource directory. Typically the resource
directory is found by searching a path relative to argv[0] but this
would only really work for Clang itself due to each binary having a
separate prefix (and not in Nix because of the full resource directory
being split between multiple derivations and assembled in the wrapper).

Because users of Clang as a library typically only need include in order
for parsing to succeed, let's set that as the resource directory. The LLVM
patch to make this work was sent upstream in llvm/llvm-project#145996,
I intend to land it upstream and drop it from this PR.
2025-07-02 10:19:33 +02:00
Peter Waller
8f10f4f469 llvmPackages.libunwind: condition doFakeLibgcc on !stdenv.hostPlatform.isStatic
Since #380683, broken symlinks prevent the package from building on
pkgsStatic.pkgsLLVM.

So far as I know, isStatic builds don't have shared objects, so don't
emit these broken symlinks for them.

Signed-off-by: Peter Waller <p@pwaller.net>
2025-06-16 21:23:26 +01:00
K900
3b9cc44907 llvmPackages.clang: only build debug info on 64-bit compilers
32-bit compilers cannot handle this and explode.
2025-06-09 20:28:11 +03:00
Tristan Ross
5c371589e4 llvmPackages_20: 20.1.5 -> 20.1.6 2025-06-08 21:23:10 +03:00
nixpkgs-ci[bot]
13b51cfb12 Merge staging-next into staging 2025-06-06 19:33:08 +00:00
nixpkgs-ci[bot]
4339ec5da6 Merge master into staging-next 2025-06-06 19:32:04 +00:00
K900
1867adb235 Revert "llvmPackages_20: 20.1.5 -> 20.1.6" 2025-06-06 22:30:16 +03:00
K900
7e4f0fbf9d Merge remote-tracking branch 'origin/master' into staging-next 2025-06-06 21:50:43 +03:00
Tristan Ross
1f423f1276 llvmPackages_20: 20.1.5 -> 20.1.6 (#412518) 2025-06-06 11:32:24 -07:00
John Ericson
bfc3acf8f3 libcCross: Remove! (#414321) 2025-06-06 14:10:32 -04:00
phanirithvij
d75957a3bb treewide: remove rec when using finalAttrs
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
2025-06-06 15:19:52 +02:00
John Ericson
5c1955ff14 libcCross: Remove!
We have a long-standing goal of nothing with "cross" in its name. This
gets us much closer!
2025-06-05 18:11:07 -04:00
nixpkgs-ci[bot]
2b692ea7f9 Merge staging-next into staging 2025-06-01 18:05:48 +00:00
Artemis Tosini
5ee26c5e31 Fix FreeBSD native stdenv again (#389733) 2025-05-31 20:54:51 +00:00
Audrey Dutcher
3e7fa4878e llvm: disable a test that fails in the FreeBSD build jail 2025-05-31 19:18:12 +00:00
Alyssa Ross
929e918a51 llvmPackages.clang-unwrapped: enable debug info
This increases the memory required to link by quite a bit, but it
should be fine for Hydra, and people building themselves with
insufficient RAM can either disable it, or just decrease --cores.
2025-05-31 16:18:43 +02:00
Michael Daniels
788161457d llvm_{12,13,14,15}: fix build with Python 3.13
Python 3.13 removed the "pipes" module, which LLVM used through v16.

So we need a patch. It's only used once though!

A similar patch was used by Arch: https://gitlab.archlinux.org/archlinux/packaging/packages/llvm15/-/blob/main/nopipes.diff?ref_type=heads
2025-05-30 21:37:33 -04:00
Tristan Ross
f9460c7b56 llvmPackages_20: 20.1.5 -> 20.1.6 2025-05-30 16:25:03 -07:00
John Ericson
ddf7c357d4 clang-wrapper: add special case for FreeBSD headers (#384615) 2025-05-28 19:52:17 -04:00
Audrey Dutcher
b9c1cebcfa llvmPackages.tblgen: Fix native FreeBSD build 2025-05-28 16:43:51 -07:00
nixpkgs-ci[bot]
f55ad1c8a3 Merge staging-next into staging 2025-05-27 00:17:23 +00:00
Tristan Ross
06fec0cf1f llvmPackages_20: 20.1.4 -> 20.1.5 (#407294) 2025-05-26 11:49:43 -07:00
Philip Taron
b76868988b cc-wrapper: add support for strictflexarrays1 & strictflexarrays3 hardening flags (#400408) 2025-05-26 10:46:00 -07:00
Tristan Ross
e580b3c627 llvmPackages_20.libc: fix by removing scudo (#409966) 2025-05-25 21:42:18 -07:00
Robert Scott
3f1a00c79d cc-wrapper: add support for strictflexarrays1 & strictflexarrays3 hardening flags
adding strictflexarrays1 to pkgsExtraHardening
2025-05-24 11:10:20 +01:00
Tristan Ross
974c38747b llvmPackages_20.libc: fix by removing scudo 2025-05-22 17:01:58 -07:00
Tristan Ross
02260cbf40 llvmPackages.lldb-manpages: fix building 2025-05-22 16:38:25 -07:00