Commit Graph

524 Commits

Author SHA1 Message Date
K900
e93c560b79 Merge remote-tracking branch 'origin/master' into staging-next 2025-10-05 12:17:08 +03:00
Wolfgang Walther
91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
K900
f8d669f413 Merge remote-tracking branch 'origin/master' into staging-next 2025-10-04 21:10:21 +03:00
NAHO
c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +02:00
K900
4999ae577c Merge remote-tracking branch 'origin/master' into staging-next 2025-09-30 21:47:55 +03:00
Alyssa Ross
05a384cfe2 llvmPackages.libunwind: condition doFakeLibgcc on !stdenv.hostPlatform.isStatic (#417354) 2025-09-30 15:30:28 +00:00
nixpkgs-ci[bot]
53a7808281 Merge master into staging-next 2025-09-27 00:15:16 +00:00
Luna
1f46266191 llvmPackages.libclang: add enableClangToolsExtra flag
rocmPackages needs a clang at runtime but has no need to include
clang-tidy.

The approach in this change avoids rebuilds and is messy, I will
make a followup in staging that changes this to more idiomatic
optionalString usage if this is merged
2025-09-25 18:45:39 -07:00
nixpkgs-ci[bot]
d78f38b07d Merge master into staging-next 2025-09-21 06:05:20 +00:00
Luna Nova
b84248686b llvmPackages.libllvm: add passthru.tests.withoutOptionalFeatures
This makes it easier to test optional flags still work.
Just adding one that disables multiple because the build is fairly slow and I don't think exercising
them all separately is going to be worth the extra build time.
2025-09-20 17:18:33 -07:00
Luna Nova
89baf53225 llvmPackages.libllvm: fix enablePolly = false
Setting enablePolly = false was failing due to trying to patch a file that doesn't exist

> applying patch /nix/store/gr73nf6sca9nyzl88x58y3qxrav04yhd-polly-lit-cfg-add-libs-to-dylib-path.patch
> can't find file to patch at input line 5
2025-09-20 17:10:29 -07:00
Emily
ebbad85342 Reapply "various: fix Scudo allocator due to LLVM update" (#444670) 2025-09-20 16:30:32 +01:00
Emily
85b124cedd Reapply "various: fix Scudo allocator due to LLVM update"
This reverts commit 5119cafc59.
2025-09-20 16:24:40 +01:00
K900
5119cafc59 Revert "various: fix Scudo allocator due to LLVM update" 2025-09-20 17:53:06 +03:00
Lisa Gnedt
753af06dab treewide: fix Scudo options
The commit 01e8f570c6 unpinned the
LLVM version, which led to the following warnings whenever Scudo
is loaded (basically whenever a command is started when used
system-wide):

Scudo WARNING: found 3 unrecognized flag(s):
    DeleteSizeMismatch=0:DeallocationTypeMismatch=0
    DeallocationTypeMismatch=0
    ZeroContents=1

According to the current Scudo documentation [1] the options are
now spelled differently. This commit keeps all existing options
and only updates the spelling.

[1] https://llvm.org/docs/ScudoHardenedAllocator.html

Reported-by: CUB3D <callumthom11@gmail.com>
2025-09-20 13:11:04 +02:00
Emily
d51c4559ea llvmPackages.libclc: expose regardless of version (#443315) 2025-09-16 04:52:54 +01:00
Tristan Ross
d55bbdcbf5 llvmPackages_20.libclc: rebase use-default-paths patch 2025-09-15 20:33:57 -07:00
Emily
6ac21d552a llvmPackages.libclc: expose regardless of version
It doesn’t make sense to drop the attribute just because we
don’t yet have a `spirv-llvm-translator` that can work with it
yet, especially as they’ve been adding support for the native LLVM
SPIR‐V backend. It will now be marked as broken transitively if
`spirv-llvm-translator` is unavailable.
2025-09-16 02:52:43 +01:00
Emily
1b180b82af darwin.libcxx: (╯°□°)╯︵ ┻━┻ (#398727) 2025-09-15 19:43:28 +01:00
Randy Eckenrode
c4c5d25f13 pkgs/stdenv/darwin: switch to using the system libc++ by default 2025-09-15 19:24:08 +01:00
Randy Eckenrode
5ea679485d llvmPackages.clang: add systemLibcxxClang (primarily for Darwin) 2025-09-15 19:24:08 +01:00
nixpkgs-ci[bot]
6ec57b45c7 Merge staging-next into staging 2025-09-15 16:09:34 +00:00
Yuriy Taraday
dd12290517 Reapply "stdenv: Add CPE fields to meta"
This reverts commit de74f9caf0.
2025-09-15 17:25:11 +02:00
nixpkgs-ci[bot]
264b97ec67 Merge staging-next into staging 2025-09-15 13:52:03 +00:00
Emily
2dac87bbde llvmPackages_17: drop 2025-09-14 19:03:24 +01:00
Emily
a892ce396d llvmPackages_16: drop 2025-09-14 19:03:24 +01:00
Emily
77acbe1f9c llvmPackages_15: drop 2025-09-14 19:03:24 +01:00
Emily
f470ea24b6 llvmPackages_14: drop 2025-09-14 19:03:24 +01:00
Emily
791fe23b63 llvmPackages_13: drop 2025-09-14 19:03:24 +01:00
Emily
9b8a66c3a4 llvmPackages_12: drop 2025-09-14 19:03:24 +01:00
Emily
d49413f1f4 llvmPackages: add comment for mistake 2025-09-14 19:03:24 +01:00
Emily
8f33b55254 llvmPackages: remove redundant comment 2025-09-14 19:03:24 +01:00
Emily
c3c8a4a05d llvmPackages: remove obsolete version conditionals 2025-09-14 19:03:24 +01:00
Emily
f7444c37db llvmPackages: remove unreferenced patches 2025-09-14 19:03:24 +01:00
Tristan Ross
ded560caff llvmPackages_{20,21,git}.compiler-rt: no fmv on aarch64 without libc
aarch64 FMV (Function MultiVersioning) is not available before the libc
is available. This causes issues while building with compiler-rt on
aarch64. By disabling FMV before the libc is available resolves missing
symbol errors.
2025-09-13 09:27:17 -07:00
Vladimír Čunát
a413106654 Merge branch 'master' into staging-next 2025-09-03 06:28:10 +02:00
Emily
d4a6f48bd4 llvmPackages_21: 21.1.0-rc3 -> 21.1.0 (#437137) 2025-09-03 01:21:08 +01:00
nixpkgs-ci[bot]
b4c4165f04 Merge master into staging-next 2025-09-02 18:04:47 +00:00
Weijia Wang
3f40fd6c2b llvmPackages.llvm: drop a test on loongarch64 (#426088) 2025-09-02 15:06:43 +02:00
Tristan Ross
afd965280e llvmPackages_21.libc: fix building 2025-09-01 12:09:11 -07:00
Vladimír Čunát
d95b37aeac Merge branch 'staging' into staging-next 2025-08-30 17:06:43 +02:00
K900
de74f9caf0 Revert "stdenv: Add CPE fields to meta" 2025-08-30 09:29:43 +03:00
K900
e4f14776e7 Merge remote-tracking branch 'origin/staging-next' into staging 2025-08-30 09:19:01 +03:00
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