Commit Graph

701 Commits

Author SHA1 Message Date
Stefan Frijters
ab00ba73d8 llvmPackages.*: fix shebangs (#564731) 2026-10-01 11:05:52 +00:00
nixpkgs-ci[bot]
b7ab04901e Merge staging-next into staging 2026-09-21 00:27:24 +00:00
Randy Eckenrode
6cda1cd79a llvmPackages_23.libllvm: disable dsymutil codesign test (#552246) 2026-09-20 23:37:10 +00:00
Stefan Frijters
ef1c113770 llvmPackages.libc: fix hwasan_symbolize shebang 2026-09-19 00:19:34 +02:00
Stefan Frijters
f6d8f47ab5 llvmPackages.mlir: fix unpatched shebangs 2026-09-19 00:19:25 +02:00
Stefan Frijters
ca47430107 llvmPackages.clang: fix unpatched shebangs 2026-09-19 00:19:18 +02:00
Stefan Frijters
3a0ed81e60 llvmPackages.llvm: fix shebangs for opt-viewer scripts 2026-09-19 00:19:10 +02:00
Stefan Frijters
1ab2a3ff79 llvmPackages.compiler-rt: fix python script shebangs 2026-09-19 00:18:59 +02:00
Randy Eckenrode
5e98dfece6 apple-sdk_27: init at 27.0 (#564039) 2026-09-18 10:43:55 +00:00
Stefan Frijters
7762aa429c llvmPackages.clang-tools: use bash for wrapper (#563394) 2026-09-18 08:57:37 +00:00
sempiternal-aurora
bbf0d88475 llvmPackages.llvm: add support for arm64e.x1 subtype
Apple added a new CPU subtype with the macOS 27 sdk, which describes
CPUs with extra pointer authentication features. The apple A20 and M6
chips have this subtype, and code in the new macOS 27 sdk needs the
compiler toolchain to be able to handle these architectures, so that it
can be linked against.
2026-09-18 09:11:22 +02:00
Thomas Mühlbacher
5bf21ff317 llvmPackages.clang-tools: add test for clang-tidy
While the wrapper's bash script was broken, clang-tidy would have failed
to check a project with an include such as assert.h because it wouldn't
have been able to find that header file.
2026-09-17 20:28:32 +02:00
Thomas Mühlbacher
c37c7bbcdb llvmPackages.clang-tools: use correct shell shebang
This wrapper is factually a bash script and should therefore use the
correct shebang instead of relying on the leniency of the bash POSIX
mode.
2026-09-17 20:28:32 +02:00
Thomas Mühlbacher
247f4425b9 llvmPackages.clang-tools: ensure wrapper uses bash
The wrapper script relies on features only available with bash, namely
arithmetic evaluation as in `while (( $# )); do`. So let's ensure that
the shebang is patched to use bash. (bash's POSIX `sh` evaluates this as
intended.)

A minimal reproducer with a project that generally ought to pass
clang-tidy checking may look like so:

```nix
{
  pkgs ? import <nixpkgs> { },
}:
pkgs.fwupd.overrideAttrs (
  final: prev: {
    nativeBuildInputs = prev.nativeBuildInputs ++ [ pkgs.clang-tools ];
    preCheck = ''
      ninja clang-tidy
    '';
  }
)
```

Before, you may see many errors about missing headers and some lines
that suspiciously look like bash errors.

```
fwupd> >>> /nix/store/gf6qdh329rc8lbby710r9rzhwqkkgv3h-clang-tools-21.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/plugins/uf2/fu-self-test.c
fwupd> /nix/store/gf6qdh329rc8lbby710r9rzhwqkkgv3h-clang-tools-21.1.8/bin/clang-tidy: line 5: 129: not found
fwupd> /nix/store/gf6qdh329rc8lbby710r9rzhwqkkgv3h-clang-tools-21.1.8/bin/clang-tidy: line 23: 129: not found
fwupd> 276 warnings and 1 error generated.
fwupd> Error while processing /build/source/plugins/uf2/fu-self-test.c.
fwupd> /nix/store/dm7fg33sqnjxkwdpirnnbnx7wyi89m82-glib-2.88.3-dev/include/glib-2.0/glib/gtypes.h:41:10: error: 'time.h' file not found [clang-diagnostic-error]
fwupd>    41 | #include <time.h>
fwupd>       |          ^~~~~~~~
```

With this change, these clang-tidy errors no longer appear.
2026-09-17 20:15:07 +02:00
Michael Daniels
ce4ff022d5 Merge remote-tracking branch 'upstream/staging-next' into staging 2026-09-16 22:29:47 -04:00
whispers
2a0c7bd88d llvmPackages_23.lldb: update gnu-install-dirs.patch to fix build
ba34cbad41
moved the location of the handling for _lldb.so in the python bindings,
which we delete in gnu-install-dirs.patch. to allow the patch to apply
to lldb 23, we make the patch version dependent and move the deletion to
the new location in the source for the llvm 23 version.
2026-09-13 10:36:34 -04:00
Randy Eckenrode
4276ad9330 lldb: backport export trie fixes to LLDB 22 and older (#560288) 2026-09-12 00:55:20 +00:00
Randy Eckenrode
53b813b166 lldb: backport export trie fixes to LLDB 22 and older
Older versions of LLDB crash on macOS 27 when starting a debugging
session on macOS 27 due to a stack overflow in `ParseExportTries`.

The fixes from LLVM 23 can’t be cherry-picked due to other changes. They
have been manually backported and squashed into a single patch.
2026-09-10 20:51:32 -04:00
Vladimír Čunát
df0e8227c4 llvmPackages.mlir: fix patch list; version tablegen patch (#560071) 2026-09-07 04:41:56 +00:00
Ihar Hrachyshka
3a76fb80bb llvmPackages.mlir: version tablegen patch
The patch failed to apply on 18 and 19. We have to version it.

LLVM 18 has no MLIR_SRC_SHARDER_TABLEGEN_EXE. LLVM 19 and 20 fail to
apply the 21+ patch due to mechanical hunk failures, but otherwise use
an identical patch to 21+.
2026-09-06 21:44:24 -04:00
Ihar Hrachyshka
2fafb4e419 llvmPackages.mlir: fix patch list
Commit fd7ab9664f enabled structured attrs, rendering `patches` empty
because of a now invalid nested list in `patches`.
2026-09-06 21:44:00 -04:00
Randy Eckenrode
cda744e609 llvmPackages_23.libllvm: disable dsymutil codesign test
This test depends on being able to sign a bundle, which sigtool is not
able to do. Once we have a compatible wrapper for rcodesign, which can
sign bundles, it should be possible to enable it again.
2026-09-06 06:57:45 -04:00
Ihar Hrachyshka
be4c0c1cc0 llvmPackages.lldb-manpages: remove redundant attributes
Defaults and inherited values are identical.
2026-09-04 20:49:26 -04:00
Ihar Hrachyshka
d8bfc5b26c llvmPackages.lldb-manpages: run install hooks 2026-09-04 20:49:26 -04:00
Ihar Hrachyshka
2140d5b3a9 llvmPackages.lldb: fix C++ test compiler flag 2026-09-04 20:49:25 -04:00
Ihar Hrachyshka
a3ea85e910 llvmPackages_18.lldb: fix patch list
The nested list caused all patches to be skipped after fd4541decc
("llvmPackages.lldb: enable structuredAttrs").
2026-09-04 20:49:24 -04:00
Ihar Hrachyshka
7dafaa4085 llvmPackages.lldb: clean up package expression 2026-09-04 20:49:23 -04:00
Ihar Hrachyshka
d4f4e777a0 llvmPackages.lldb: check scripting support 2026-09-04 20:49:22 -04:00
Ihar Hrachyshka
4ccf895648 llvmPackages.lldb: add version install check 2026-09-04 20:49:21 -04:00
Ihar Hrachyshka
cfe3dd7341 llvmPackages.lldb: restore Lua support 2026-09-04 20:49:20 -04:00
Ihar Hrachyshka
1fba7a4414 llvmPackages.lldb: add Python runtime dependency 2026-09-04 20:49:19 -04:00
Stefan Frijters
14e28de371 llvmPackages.*: enable strictDeps, structuredAttrs for monorepoSrc (#558480) 2026-09-02 11:24:00 +00:00
Stefan Frijters
03222ac047 llvmPackages.*: nixfmt
Separate commit for easier reviewing
2026-08-31 19:38:24 +02:00
Stefan Frijters
2ae2d65a06 llvmPackages.*: enable strictDeps, structuredAttrs for monorepoSrc 2026-08-31 19:31:13 +02:00
Stefan Frijters
08d4bc9f79 llvmPackages.bintools: enable strictDeps, structuredAttrs 2026-08-31 19:30:18 +02:00
Stefan Frijters
f52493284e llvmPackages.*: enable strict Deps, enable structuredAttrs (#553112) 2026-08-26 13:32:51 +00:00
Stefan Frijters
bbd1098378 llvmPackages.tblgen: enable strictDeps 2026-08-16 13:31:30 +02:00
Stefan Frijters
d72445d153 llvmPackages.openmp: enable structuredAttrs 2026-08-16 13:31:30 +02:00
Stefan Frijters
8276a9b6c0 llvmPackages.openmp: enable strictDeps 2026-08-16 13:31:30 +02:00
Stefan Frijters
fd7ab9664f llvmPackages.mlir: enable structuredAttrs 2026-08-16 13:31:29 +02:00
Stefan Frijters
2e17f188f7 llvmPackages.mlir: enable strictDeps 2026-08-16 13:31:29 +02:00
Stefan Frijters
141b945958 llvmPackages.llvm: enable structuredAttrs 2026-08-16 13:31:29 +02:00
Stefan Frijters
7eecbbd1a1 llvmPackages.llvm: enable strictDeps 2026-08-16 13:31:29 +02:00
Stefan Frijters
fd4541decc llvmPackages.lldb: enable structuredAttrs 2026-08-16 13:31:29 +02:00
Stefan Frijters
c9ada647b9 llvmPackages.lldb: enable strictDeps 2026-08-16 13:31:29 +02:00
Stefan Frijters
949fdee377 llvmPackages.lldbPlugins.llef: enable structuredAttrs, use tag 2026-08-16 13:31:29 +02:00
Stefan Frijters
a153c7e578 llvmPackages.lldbPlugins.llef: enable strictDeps 2026-08-16 13:31:29 +02:00
Stefan Frijters
56f7cdda68 llvmPackages.lld: enable structuredAttrs 2026-08-16 13:31:29 +02:00
Stefan Frijters
33d326357c llvmPackages.lld: enable strictDeps 2026-08-16 13:31:29 +02:00
Stefan Frijters
e3a1b84fa2 llvmPackages.libunwind: enable structuredAttrs 2026-08-16 13:31:28 +02:00