Commit graph

1376 commits

Author SHA1 Message Date
Nikodem Rabuliński
6305515e45
lldb: add meta.mainProgram 2024-01-12 20:06:31 +01:00
Nikodem Rabuliński
62cb8f4628
llef: init at unstable-2023-10-18 2024-01-12 20:06:30 +01:00
Weijia Wang
2f9e98ccf3 Merge branch 'master' into staging-next 2024-01-10 23:12:44 +01:00
Weijia Wang
0373b68de5
Merge pull request #279581 from trofi/clang6Stdenv-and-co-removal
clang6Stdenv, clang-tools_6, clang_6, lld_6, lldb_6, llvm_6: remove
2024-01-10 23:11:42 +01:00
Weijia Wang
4994d382bb
Merge pull request #279404 from trofi/llvm-bintool-targtePrefix-eval-fix
llvmPackages.bintools.bintools: expose `targetPrefix` attribute to ma…
2024-01-10 19:50:51 +01:00
Weijia Wang
927f9393c1 llvmPackages_6: remove
Remove as the last two users are gone.
2024-01-09 22:38:47 +01:00
Martin Weinelt
ef1898454c
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
-	pkgs/development/python-modules/aiohappyeyeballs/default.nix
2024-01-08 16:34:52 +01:00
Sergei Trofimovich
88f8b20419 llvmPackages.bintools.bintools: expose targetPrefix attribute to match binutils
Before the change `llvmPackages.bintools.bintools.targetPrefix` was not
present. This exposed as a discrepansy between `binutils` and `llvm`:

`binutils`:

    nix-repl> stdenv.cc.bintools.bintools.targetPrefix
    ""
    nix-repl> stdenv.cc.bintools.targetPrefix
    ""

`llvm`:

    nix-repl> pkgsLLVM.stdenv.cc.bintools.targetPrefix
    "x86_64-unknown-linux-gnu-"

    nix-repl> pkgsLLVM.stdenv.cc.bintools.bintools.targetPrefix
    error:
       error: attribute 'targetPrefix' missing

As a result some attributes like `pkgsLLVM.actionlint` failed to
evaluate:

    $ nix build --no-link -f. pkgsLLVM.actionlint
    ...
          error: attribute 'targetPrefix' missing
       at pkgs/development/compilers/ghc/9.4.8.nix:232:46:

          231|     export READELF="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}readelf"
          232|     export STRIP="${bintoolsFor.strip}/bin/${bintoolsFor.strip.targetPrefix}strip"
             |                                              ^

The change exposes binary prefix the same way as `binutils` does.
2024-01-07 14:47:22 +00:00
Weijia Wang
8741644b3f lldb: allow to be used as vscode extension again 2024-01-06 00:30:14 +01:00
Vladimír Čunát
8a839514de
Merge branch 'master' into staging-next 2024-01-04 15:07:44 +01:00
sternenseemann
23cf198545 llvmPackages_{16,17,git}.lldb: tell cc-wrapper about libclang*.so
It appears that LLVM's build system no longer sets the executable's
rpath to include the faux resource root we pass in, so we need to make
sure cc-wrapper does this.
2024-01-04 11:00:25 +01:00
Semion Nadezhdin
622a03c198 llvmPackages_{14,15,16,17,git}.lldb: unify lua and python path patch 2024-01-04 11:00:25 +01:00
Weijia Wang
eb5334c27d Merge branch 'master' into staging-next 2024-01-03 03:22:40 +01:00
Bernardo Meurer
8e5a5551e8
Merge pull request #273788 from sternenseemann/llvmgold-clang-16-and-above 2023-12-22 20:06:56 -03:00
Weijia Wang
6afc8c2675 lldb_14: fix broken bindings again 2023-12-22 04:13:15 +01:00
Alyssa Ross
333088006c pkgsLLVM.llvmPackages.compiler-rt: fix for RISC-V
compiler-rt includes <linux/unistd.h> on RISC-V.  This only seems to
be necessary for useLLVM, but looking at the source code I can't
see any reason for that, so probably in the non-useLLVM case it just
gets propagated in.
2023-12-19 11:34:37 +01:00
Ryan Lahfa
b8c38597c9
Merge pull request #269904 from willcohen/emscripten-3.1.48 2023-12-13 19:40:24 +01:00
sternenseemann
3e8355df84 llvmPackages_{16,17,git}: reenable LLVMgold plugin
See https://github.com/nixos/nixpkgs/issues/123361 for context regarding
the clang patch.

Seems like the https://github.com/llvm/llvm-project/issues/61350 crash
no longer occurs in the test suite and we can reenable the gold plugin
by default.
2023-12-12 17:36:20 +01:00
sternenseemann
6db6c6df7b llvmPackages_*: update name for LLVMgold patch for clang >= 11
It no longer applies to clang >= 16, let's make the name correspond to
the versions it applies to.
2023-12-12 16:49:07 +01:00
Weijia Wang
f6da64f8db llvmPackages_17.libclc: init 2023-12-12 02:28:36 +01:00
Will Cohen
a4daad0caa llvmPackages_17.lld: backport table-base patch
Starting with emscripten-3.1.46, this flag to LLVM is needed.

This is a backport of
93adcb770b.patch,
with additional review at https://reviews.llvm.org/D158892 and
emscripten-core/emscripten#20097.
2023-12-11 11:48:50 -05:00
Weijia Wang
c9e419dee9
Merge pull request #272931 from wegank/llvm-17-bump
llvmPackages_17: 17.0.2 -> 17.0.6
2023-12-09 12:23:13 +01:00
Weijia Wang
99fa28912a llvmPackages_17: 17.0.2 -> 17.0.6 2023-12-08 16:14:54 +01:00
Weijia Wang
5ec25fa1d4 llvmPackages_git: sync with llvmPackages_17 2023-12-08 15:49:21 +01:00
Weijia Wang
1be4693cf2
Merge pull request #258614 from ExpidusOS/feat/llvm-17
llvmPackages_17: init
2023-12-08 15:11:29 +01:00
Tristan Ross
d6d5c8a14e
llvmPackages_17: init 2023-12-07 16:28:06 -08:00
sternenseemann
ae29d067ff llvmPackages_7: remove at 7.1.0 2023-12-04 19:42:57 +01:00
Randy Eckenrode
cc2d0f04db
llvmPackages_6.lldb: fix build on x86_64-darwin 2023-11-25 16:31:12 -05:00
Randy Eckenrode
856eb81d1f
llvmPackages_{7,8,9}.{llvm-polly,libllvm-polly}: fix build with clang 16
Same fix as https://github.com/NixOS/nixpkgs/pull/265967.
2023-11-25 16:31:12 -05:00
Artturi
1ea40b20f1
Merge pull request #268812 from Artturin/llvmdedup3 2023-11-23 21:00:27 +02:00
Artturin
8b68c650d8 llvmPackages_16.libclc: fix cross eval
libclc was moved in to the set in 223afab31f
2023-11-22 21:50:36 +02:00
Artturin
f6749cddad llvmPackages_11.compiler-rt: restore libcxxabi argument
Removing this caused

`error: anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/pkgs/development/compilers/llvm/11/compiler-rt/default.nix:1:1 called with unexpected argument 'libcxxabi'`

https://github.com/search?q=repo%3ANixOS%2Fnixpkgs%20%2Fcompiler-rt.override%2F&type=code

The argument became unused in 56fcbcd154 (diff-b1bb77941db4393b7d2cf7a370cee294318418f2507b7a78e22353d1afbb6d21L18)

but it was not removed from `buildInputs` in later `llvmPackages` because `llvmPackages_12` had
been created before this change was done.

Removing `libcxxabi` from `buildInputs` may have to be applied to the
other `llvmPackages` too.
2023-11-21 17:45:58 +02:00
Artturin
b59fd202d7 llvmPackages: Remove dead code
for hygiene

Run `deadnix . --edit`

`gccForLibs` is an argument used by multi.nix but it's an argument to
cc-wrapper, not to llvmPackages.

`@args` in `llvm/default.nix` was accidentally added in 4badff49fd

There are no uses of `@` therefore these changes are safe.
2023-11-21 02:05:15 +02:00
Artturin
c1e1a583a0 llvmPackages_{13,14}: Use releaseInfo and monorepoSrc
Doing the same thing as was done in the initial adding of `monorepoSrc` to `llvmPackages_15` d231d18e4a
2023-11-21 01:46:51 +02:00
Artturin
e6751897e0 llvmPackages: Dedupe monorepoSrc 2023-11-21 01:46:51 +02:00
Artturin
5ac86a99e7 llvmPackages: Dedupe releaseInfo 2023-11-21 01:46:51 +02:00
Artturin
2902f99c57 llvmPackages: Dedupe llvm_meta 2023-11-21 01:46:47 +02:00
Weijia Wang
25b33e9c70
Merge pull request #267298 from boltzmannrain/lldb7_macos
lldb_7: fix x86_64-darwin build
2023-11-18 05:42:14 +01:00
Raito Bezarius
9866a5be7e llvmPackages_5: drop
While using very old compilers is a fair usecase, it induces a maintenance churn as
we collect more and more LLVM versions for the LLVM maintainers.

Especially when we need to backport uniform changes to the whole tree,
furthermore, it consumes and waste CI resources.
2023-11-17 16:12:32 +01:00
Dmitry Ivankov
7dbadf0f95 lldb_7: fix x86_64-darwin build
Add missing dependency DebugSymbols, already present in lldb_8 version
so copying from there.

ZHF: #265948
2023-11-13 21:45:43 +01:00
Martin Weinelt
c17ba56fe9
Merge pull request #266321 from lilyinstarlight/fix/llvm-16-wasi
[staging-next] llvmPackages: 12 -> 16 on wasm
2023-11-09 16:07:25 +01:00
Weijia Wang
83bfbf0213
Merge pull request #265490 from alyssais/compiler-rt-16-freebsd
llvmPackages_16.compiler-rt: fix FreeBSD build
2023-11-09 06:12:20 +01:00
Lily Foster
e58eaa0ee9
llvmPackages_{15,16}: fix libcxxabi -fno-exceptions build for wasm 2023-11-08 13:51:49 -05:00
Alyssa Ross
772a2502f1
llvmPackages_16.compiler-rt: fix FreeBSD build
The clang_rt.crt* files are only built on Linux (see the
COMPILER_RT_HAS_CRT CMake variable).
2023-11-07 10:01:10 +01:00
Randy Eckenrode
01d3b7449c
llvmPackages_10.llvm: fix build with clang 16
Add missing isl includes needed to build with Polly support enabled.
2023-11-06 19:15:25 -05:00
github-actions[bot]
4a533d29ce
Merge master into staging-next 2023-11-01 12:01:10 +00:00
Alyssa Ross
fcc44e9aea
llvmPackages_12.openmp,llvmPackages_13.openmp: fix cross
CMake commit faa950a155 ("try_compile: Run native build tool with verbose output")
did not play well with these versions of openmp, which have a faulty
failure regex that considers "unknown" in the build output to indicate
a failure.  When cross compiling, the string "unknown" is very likely
to occur as part of triples.  Fix by backporting a patch that improves
the failure regex check to not be tripped up by triples.

The same problem affects LLVM 11 and possibly earlier, but the patch
doesn't apply that far back, so I didn't bother for now.

Fixes: b8ac5b6cfb ("cmake: 3.25.3 -> 3.26.4")
2023-10-30 13:04:51 +01:00
Vladimír Čunát
1046dc0255
Merge #263876: pkgsCross.wasi32.stdenv: fix build with LLVM 16
...into staging-next
2023-10-30 07:15:14 +01:00
K900
e6cbaa94f9 libclc: absorb into llvmPackages(16) 2023-10-28 15:26:11 +03:00
Randy Eckenrode
9b77925762
llvmPackages_16.libcxxabi: fix wasi32 build 2023-10-27 18:37:52 -04:00