Commit Graph

2326 Commits

Author SHA1 Message Date
Patryk Wychowaniec
f9c27d12ca clang-tools: add support for --query-driver 2026-01-05 15:53:46 +02:00
Maximilian Bosch
e69f759b53 llvmPackages_1{8,9}.compiler-rt: fix build w/ glibc-2.42
Failing Hydra build: https://hydra.nixos.org/build/308327424
2026-01-03 20:39:42 +01:00
R. Ryantm
54425f677b llvmPackages.lldbPlugins.llef: 2.0.0 -> 2.2.1 2026-01-01 22:04:13 +00:00
nixpkgs-ci[bot]
beb123cc8c Merge staging-next into staging 2025-12-29 18:06:39 +00:00
nixpkgs-ci[bot]
fb4bc41155 Merge master into staging-next 2025-12-29 18:05:59 +00:00
Alyssa Ross
757725c9ef clang-tools: handle -cxx-isystem in wrapper (#475078) 2025-12-29 15:59:14 +00:00
Jörg Thalheim
91bc3381e4 clang-tools: handle -cxx-isystem in wrapper
The libcxx-cxxflags file uses -cxx-isystem instead of -isystem for C++
include paths. Without handling this flag, the CPLUS_INCLUDE_PATH was
not being set correctly, causing clang-tidy to fail finding standard
library headers like <iostream> and <cstring>.
2025-12-29 15:41:08 +00:00
Alyssa Ross
89719dc42d llvmPackages.compiler-rt: fix nolibc build (#473755) 2025-12-29 12:25:47 +00:00
Tristan Ross
75cf7d1764 llvmPackages_git: 22.0.0-unstable-2025-12-21 -> 22.0.0-unstable-2025-12-28 2025-12-28 20:04:05 -08:00
Theo Paris
8c4fa80840 llvmPackages.compiler-rt: fix nolibc build
Signed-off-by: Theo Paris <theo@theoparis.com>
Change-Id: Ieae2b7b767f744fac4a4f9fc46e949db6a6a6964
2025-12-23 19:25:40 -08:00
Philip Taron
9905e95ebe llvmPackages_21: 21.1.7 -> 21.1.8 (#463103) 2025-12-24 02:55:12 +00:00
K900
b715e74ab2 Merge remote-tracking branch 'origin/master' into staging-next 2025-12-22 21:42:30 +03:00
Tristan Ross
1f0c5e638b llvmPackages_git: 22.0.0-unstable-2025-12-14 -> 22.0.0-unstable-2025-12-21 2025-12-21 19:44:49 -08:00
K900
85998c77b2 llvmPackages_{18,19}: fix build with gcc15 (#446556) 2025-12-18 06:59:41 +00:00
Tristan Ross
e4bf5af26d llvmPackages_21: 21.1.7 -> 21.1.8 2025-12-17 18:41:50 -08:00
nixpkgs-ci[bot]
98b2b03bb4 Merge staging-next into staging 2025-12-15 12:10:12 +00:00
Tristan Ross
71a1699adb llvmPackages_git: 22.0.0-unstable-2025-12-07 -> 22.0.0-unstable-2025-12-14 2025-12-14 22:19:10 -08:00
nixpkgs-ci[bot]
07c009ec89 Merge staging-next into staging 2025-12-11 18:06:04 +00:00
Tristan Ross
fad43d0aa1 llvmPackages_git: 22.0.0-unstable-2025-11-30 -> 22.0.0-unstable-2025-… (#468865) 2025-12-11 15:57:44 +00:00
Wolfgang Walther
46c0c0eae7 Merge branch 'staging-next' into staging 2025-12-10 18:42:31 +01:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Alyssa Ross
4456aed5d4 llvmPackages_21: 21.1.2 -> 21.1.7 (#459683) 2025-12-09 14:08:40 +00:00
Tristan Ross
e237f3ede8 llvmPackages_git: 22.0.0-unstable-2025-11-30 -> 22.0.0-unstable-2025-12-07 2025-12-07 19:54:04 -08:00
Timothy Klim
80757542e4 llvmPackages_21: 21.1.2 -> 21.1.7 2025-12-08 09:00:12 +08:00
K900
8b56bf20bb Merge remote-tracking branch 'origin/staging-next' into staging 2025-12-07 23:38:37 +03:00
David McFarland
d613d20a13 treewide: fix nix-env eval in cross 2025-12-04 19:44:19 -04:00
ghpzin
9ecbf0230d llvmPackages_{18,19}.mlir: fix build with gcc15
- add patch from 2 upstream commits that were not backported to llvm_18
and llvm_19:

41eb186fbb
Fixes build failure with gcc15:
```
In file included from /build/mlir-src-18.1.8/mlir/lib/Dialect/Affine/IR/ValueBoundsOpInterfaceImpl.cpp:9:
/build/mlir-src-18.1.8/mlir/include/mlir/Dialect/Affine/IR/ValueBoundsOpInterfaceImpl.h:31:11:
error: 'int64_t' was not declared in this scope
   31 | FailureOr<int64_t> fullyComposeAndComputeConstantDelta(Value value1,
      |           ^~~~~~~
/build/mlir-src-18.1.8/mlir/include/mlir/Dialect/Affine/IR/ValueBoundsOpInterfaceImpl.h:13:1:
note: 'int64_t' is defined in header '<cstdint>'; this is probably
fixable by adding '#include <cstdint>'
   12 | #include "mlir/Support/LogicalResult.h"
  +++ |+#include <cstdint>
   13 |
```

101109fc54
Fixes failure with gcc15:
```
In file included from /build/mlir-src-19.1.7/mlir/lib/Target/SPIRV/Deserialization/Deserialization.cpp:9:
/build/mlir-src-19.1.7/mlir/include/mlir/Target/SPIRV/Deserialization.h:29:51:
error: 'uint32_t' was not declared in this scope
   29 | OwningOpRef<spirv::ModuleOp> deserialize(ArrayRef<uint32_t> binary,
      |                                                   ^~~~~~~~
/build/mlir-src-19.1.7/mlir/include/mlir/Target/SPIRV/Deserialization.h:18:1:
note: 'uint32_t' is defined in header '<cstdint>'; this is probably
fixable by adding '#include <cstdint>'
   17 | #include "mlir/Support/LLVM.h"
  +++ |+#include <cstdint>
   18 |
```

First patch can be applied with `fetchpatch`, but only on llvm_19, because
of changed include line right above.
So use 2 versions of combined patches with 2 commits.
2025-12-04 07:21:16 +03:00
ghpzin
3d2200b18c llvmPackages_18.lldb: fix build with gcc15
- add patch from upstream commit that was not backported to llvm_18:

bb59f04e7e
Fixes build failure with gcc15:
```
In file included from /build/lldb-src-18.1.8/lldb/source/Utility/AddressableBits.cpp:9:
/build/lldb-src-18.1.8/lldb/include/lldb/Utility/AddressableBits.h:25:27:
error: 'uint32_t' has not been declared
   25 |   void SetAddressableBits(uint32_t addressing_bits);
      |                           ^~~~~~~~
/build/lldb-src-18.1.8/lldb/include/lldb/Utility/AddressableBits.h:13:1:
note: 'uint32_t' is defined in header '<cstdint>'; this is probably
fixable by adding '#include <cstdint>'
   12 | #include "lldb/lldb-forward.h"
  +++ |+#include <cstdint>
   13 |
```

Cannot use `fetchpatch` because patch does not apply on llvm_18
(no `#include "lldb/lldb-public.h"` line on llvm_18).
2025-12-04 07:21:16 +03:00
ghpzin
e66ff4c802 llvmPackages_18.llvm: fix build with gcc15
- add combined patch from 2 upstream commits that were not backported
to llvm_18:

8f39502b85
Fixes build failure with gcc15:
```
In file included from /build/llvm-src-18.1.8/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.cpp:14:
/build/llvm-src-18.1.8/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h:44:43:
error: 'uint8_t' has not been declared
   44 | createAMDGPUELFObjectWriter(bool Is64Bit, uint8_t OSABI,
      |                                           ^~~~~~~
/build/llvm-src-18.1.8/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h:19:1:
note: 'uint8_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
   18 | #include <memory>
  +++ |+#include <cstdint>
   19 |
```

7abf44069a
Fixes build failure with gcc15:
```
In file included from /build/llvm-src-18.1.8/llvm/lib/Target/X86/MCTargetDesc/X86BaseInfo.h:19,
                 from /build/llvm-src-18.1.8/llvm/lib/Target/X86/MCTargetDesc/X86EncodingOptimization.cpp:14:
/build/llvm-src-18.1.8/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h:86:50:
error: 'uint64_t' has not been declared
   86 |                               int MemoryOperand, uint64_t TSFlags);
      |                                                  ^~~~~~~~
/build/llvm-src-18.1.8/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h:18:1:
note: 'uint64_t' is defined in header '<cstdint>'; this is probably
fixable by adding '#include <cstdint>'
   17 | #include <string>
  +++ |+#include <cstdint>
   18 |
```

Cannot use `fetchpatch` because second patch does not apply on llvm_18,
no `#include "llvm/ADT/SmallVector.h"` line present on llvm_18.
So vendor combined patch from 2 commits.
2025-12-04 07:21:16 +03:00
nixpkgs-ci[bot]
eaf800ec08 Merge staging-next into staging 2025-12-01 12:07:56 +00:00
Tristan Ross
b0e799a82c llvmPackages_git: 22.0.0-unstable-2025-11-23 -> 22.0.0-unstable-2025-11-30 2025-11-30 22:40:44 -08:00
nixpkgs-ci[bot]
51302aec37 Merge staging-next into staging 2025-11-24 12:08:02 +00:00
Tristan Ross
cb8b3c7d97 llvmPackages_git: 22.0.0-unstable-2025-11-16 -> 22.0.0-unstable-2025-11-23 2025-11-23 18:44:20 -08:00
Randy Eckenrode
6b8d301790 llvmPackages.clang-tools: add support for -cxx-isystem (#462747) 2025-11-18 12:46:02 +00:00
Randy Eckenrode
d46fa2640e llvmPackages.clang-tools: add support for -cxx-isystem
This is necessary after https://github.com/NixOS/nixpkgs/pull/445095,
which moved libc++ to -cxx-isystem to improve compatibility with build
systems that invoke `clang` to compile C++ code.
2025-11-17 20:35:07 -05:00
Tristan Ross
973d7ee497 llvmPackages_git: 22.0.0-unstable-2025-11-09 -> 22.0.0-unstable-2025-11-16 2025-11-16 19:22:16 -08:00
Tristan Ross
57716c3506 llvmPackages_git: 22.0.0-unstable-2025-11-02 -> 22.0.0-unstable-2025-11-09 2025-11-09 21:03:50 -08:00
Tristan Ross
738c67d94a llvmPackages_git: 22.0.0-unstable-2025-10-27 -> 22.0.0-unstable-2025-11-02 2025-11-02 23:11:44 -08:00
Aliaksandr
03bb7d8195 all-packages: do not export lib functions from pkgs 2025-10-30 22:38:49 +02:00
Tristan Ross
b9725f4a01 llvmPackages_git: 22.0.0-unstable-2025-10-19 -> 22.0.0-unstable-2025-10-27 2025-10-27 18:33:33 -07:00
Emily
2d6ca409d6 llvmPackages: add comments about suspicious things 2025-10-25 20:07:13 +01:00
Emily
3a8c494305 llvmPackages: remove things made unnecessary by splicing 2025-10-25 20:07:13 +01:00
Emily
8b6e86acfb llvmPackages: remove unnecessary use of pkgs 2025-10-25 20:07:13 +01:00
Emily
210060e66c llvmPackages.openmp: don’t use a target platform LLVM
This was used in 4b07aeae16 to get
what was actually a *host* LLVM in practice, when the `buildHost`
LLVM package set was included in the `callPackage` scope used for
libraries. It should no longer be necessary and is now quite confusing.
2025-10-25 20:07:13 +01:00
Tristan Ross
62d59194b8 pkgs/development/compilers/llvm: use makeScopeWithSplicing'
Co-authored-by: Luna Nova <git@lunnova.dev>
Co-authored-by: Emily <vcs@emily.moe>
2025-10-25 20:06:32 +01:00
nixpkgs-ci[bot]
fb4a94b345 Merge master into staging-next 2025-10-20 18:06:02 +00:00
Tristan Ross
f034d78f5c llvmPackages_git: 22.0.0-unstable-2025-10-12 -> 22.0.0-unstable-2025-10-19 2025-10-19 21:22:04 -07:00
nixpkgs-ci[bot]
def5232766 Merge master into staging-next 2025-10-16 18:05:40 +00:00
Tristan Ross
baad0182f1 llvmPackages_git: 22.0.0-unstable-2025-10-05 -> 22.0.0-unstable-2025-10-12 2025-10-12 22:13:34 -07:00
Vladimír Čunát
9601d1fec3 llvmPackages_21: 21.1.1 -> 21.1.2 (#447069) 2025-10-07 11:41:19 +02:00