Commit Graph

62 Commits

Author SHA1 Message Date
Stéphan Kochen
e0c70d5e0f stdenvBootstrapTools: fix cycle on aarch64-darwin 2022-10-20 16:55:00 +02:00
github-actions[bot]
5d957f3dba
Merge staging-next into staging 2022-10-11 00:05:26 +00:00
Franz Pletz
057ae3d0f1
llvmPackage_14.compiler-rt: fix build with libxcrypt 2022-10-09 18:10:31 +02:00
Rahul Butani
d20c8697eb
llvmPackages_{13,14}.lldb: fix build on x86 macOS
See: https://github.com/NixOS/nixpkgs/pull/194634#issuecomment-1272129132
2022-10-08 21:40:04 -05:00
github-actions[bot]
a6e5efa5f4
Merge staging-next into staging 2022-10-06 00:05:14 +00:00
7c6f434c
711191ca62
Merge pull request #186575 from stephank/fix/compiler-rt-builtins
compiler-rt: build builtins on darwin
2022-10-05 18:48:36 +00:00
7c6f434c
1723d25c72
Merge pull request #190908 from a12l/lldb-lua
lldb: Add Lua support
2022-10-05 18:46:02 +00:00
7c6f434c
d89b2002b3
Merge pull request #193636 from crabtw/staging
llvmPackages_{14, git}.clang: add nostdlibinc flag
2022-10-05 18:45:01 +00:00
toonn
6a132cf2f3
Merge pull request #185766 from stephank/fix/libcxxabi
libcxxabi: remove link with build libcxxabi
2022-10-05 12:58:32 +02:00
Jyun-Yan You
44165d3657 llvmPackages_{14, git}.clang: add nostdlibinc flag
Fix header search paths as #153963
2022-09-30 09:33:05 +08:00
Albin Otterhäll
86d743a958 lldb: add support for Lua bindings in LLDB 14 2022-09-27 01:19:26 +02:00
Martin Weinelt
5d4267b0f2 Merge remote-tracking branch 'origin/master' into staging-next 2022-09-20 12:25:19 +02:00
Yureka
6485a02fb3 llvm 14 lld: build with 2M stack size to fix firefox lto 2022-09-20 08:04:26 +02:00
Yureka
94cad6ec1a llvm 14 compiler-rt: enable libclang_rt.profile-....a build 2022-09-20 08:04:26 +02:00
github-actions[bot]
0b07cb1528
Merge staging-next into staging 2022-09-13 12:02:05 +00:00
Alyssa Ross
723a5645b5 pkgsStatic.llvm_14: fix build 2022-09-13 08:24:17 +00:00
OPNA2608
bd332c848c llvm*: Don't show progress bar on tests
Since the progress bar results in large output that is broken due to the use of
ncurses and we already use the flag that gives verbose output on test failures,
let's just disable the progress bar.
2022-09-03 18:38:44 +02:00
OPNA2608
6c6f4a9724 llvm*: Fix core usage in tests
lit (LLVM Integrated Tester) [0] by default uses as many threads as the build host
has cores, ignoring the user's core settings for the build.
This passes the configured core count on to lit, along with LLVM's default
settings for it which we otherwise override in the process [1].

[0]: https://www.llvm.org/docs/CommandGuide/lit.html
[1]: 329fda39c5/llvm/CMakeLists.txt (L559-L565)
2022-09-03 17:20:46 +02:00
Stéphan Kochen
96e4a0f05c libcxxabi: remove link with build libcxxabi 2022-08-26 17:02:11 +02:00
Stéphan Kochen
fb91bfc380 compiler-rt: build builtins on darwin
The missing xcrun meant builtins were missing from darwin. This
apparently wasn't an issue until now, but is in projects using
`@available` checks. (The ARM64 hack was apparently the previous
solution to fixing broken SDK detection.)
2022-08-24 08:45:14 +02:00
John Ericson
d6636a5de6 llvmPackages_14.compiler-rt: fix aarch32 patch
This is just the same fix we did for LLVM 13 in
265ba73a78 applied to LLVM 14.
2022-08-18 22:09:17 +00:00
John Ericson
fd36ac32c0 Revert "clang_14: drop out-of-date armv7l patch"
This reverts commit f69c82f8ea.
2022-08-18 22:08:12 +00:00
John Ericson
bf39e32272 compiler-rt: Fix "bare metal" case boolean logic
It is possible to both be bare metal and have a libc (newlib).

This libc doesn't provide very much --- not enough for CMake to think
the C toolchain works. We therefore adjust our logic so we hit the "bare
metal" case with or without libc.

The "use LLVM" bootstrap is intentionally not affected.
2022-08-01 12:18:54 -04:00
Luiz Ribeiro
c743308438 llvm14: Skip broken tests on riscv 2022-07-16 22:50:41 -05:00
Ivan Kozik
34c77f1e8d llvmPackages_14: 14.0.1 -> 14.0.6 2022-07-07 19:34:17 +00:00
sternenseemann
0083a683d7 Revert "llvmPackages: do not include static archives when shared…"
Reverts #162607 / 1748887ff2.

Reason for revert: This change caused llvm-config{,-native} to be unable
to find static archives bundled with LLVM, as has been [reported]. Ever
since #152944 using moveToOutput in LLVM is _evil_ because llvm-config
obtains it knowledge about the installation locations from the CMake
configure step.

Consequently a change like #162607 will need to be implemented by making
LLVM itself install the static archives to the correct location or by
adding yet another patch which updates llvm-config's knowledge of the
location. The latter is not desireable in my opinion, though, since it
is just asking for this sort of trouble: Before #152944 we had an
outputs.patch that did this sort of things which broke spectacularly in
edge cases.

Fixes #148117.

[reported]: https://github.com/NixOS/nixpkgs/issues/148117#issuecomment-1158245576
2022-07-05 15:03:12 +02:00
misuzu
f69c82f8ea clang_14: drop out-of-date armv7l patch 2022-06-20 15:37:47 +03:00
John Ericson
942da65b07 llvmPackages_14: Fix remaining broken gnu-install-dirs patches 2022-06-08 16:43:04 +00:00
misuzu
d7848386e5 llvmPackages/libllvm: disable failing tests on armv7l 2022-06-05 09:54:18 +03:00
Janne Heß
c911240e9c
Revert "Add mingwW64-llvm cross-system." 2022-05-18 13:50:23 +02:00
Shea Levy
0f68ed163c
Merge branch 'mingwW64-clang' into staging 2022-05-18 06:30:21 -04:00
Shea Levy
15aa32e082
llvm-bintools: passthru targetPrefix.
This is expected e.g. by the GHC cross-compilation code
2022-05-09 10:09:20 -04:00
Shea Levy
b7b9b73760
libcxx/libcxxabi: Fix build on Windows with lld 2022-05-09 10:06:52 -04:00
Shea Levy
5ca96b948c
libcxxabi: Fix build against compiler-rt-using clang 2022-05-09 10:05:50 -04:00
Shea Levy
078a07708a
libunwind: Fix build against compiler-rt-using clang 2022-05-09 10:05:47 -04:00
Shea Levy
dee9af9323
bintools: Add isXXX flags to check linker type 2022-05-09 10:03:48 -04:00
Shea Levy
a73b59a157
llvm-bintools: Include aliases for windres and dlltool on Windows 2022-05-06 10:54:52 -04:00
Emery Hemingway
ff802de61e llvm-14: use nixSupport arguments with wrapCCWith 2022-04-30 21:53:58 -05:00
github-actions[bot]
f6bedc13d1
Merge master into staging-next 2022-04-17 18:01:03 +00:00
7c6f434c
7bcc39de71
Merge pull request #166835 from dtzWill/fix/issue-166833-clang-tools14
llvmPackages_14.clang: include clang-tools-extra in src for use
2022-04-17 13:16:26 +00:00
github-actions[bot]
1c0229dbfd
Merge staging-next into staging 2022-04-15 00:03:21 +00:00
Michael Weiss
84dbfa8f97
llvmPackages_14: 14.0.0 -> 14.0.1 2022-04-13 22:30:31 +02:00
Lassulus
a1780e4b7d
Merge pull request #162607 from waldheinz/libllvm-drop-static
llvmPackages/libllvm: do not include static archives when shared is r…
2022-04-08 19:39:18 +01:00
Will Dietz
075c5eb8d3 llvmPackages_14.clang: include clang-tools-extra in src for use
Fixes #166833.

The build creates a symlink for this assuming it's present,
so be sure it's there when filtering the source for clang.

Alternatively we could use LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR.
2022-04-01 11:09:39 -05:00
Aleksey Kladov
6d111cbf61 Clarify that lld package provides unwrapped lld
lld package provides an unwrapped lld. It doesn't always work on NixOS
(eg, it doesn't set rpath), and so dosen't always work.

What one should be using instead is the `lld` from
`llvmPackages.bintools` package. This super counterintutive.

One incremental step we can take here is to clarify that the `lld`
package is unrwapped -- right now, it looks like 100% legit thing one
should be using!
2022-03-27 18:14:55 -04:00
Will Dietz
2efcc3e297 openmp: disable tests due to failures 2022-03-24 18:58:38 -05:00
Will Dietz
4f3116f754 openmp: drop fix-find-tool patch, set *_TOOL vars directly 2022-03-24 18:58:38 -05:00
Will Dietz
7151381aab openmp: tests, few failures 2022-03-24 18:58:38 -05:00
Will Dietz
5e04d64aed openmp: no longer broken 2022-03-24 18:58:38 -05:00
Will Dietz
790c4f13dd openmp: new fix-find-tools patch 2022-03-24 18:58:38 -05:00