Commit Graph

1247 Commits

Author SHA1 Message Date
Adam Joseph
62794bf2bb wrapClangMulti: link include/c++ into gcc_multi_sysroot
The phoney gcc that we construct for multilib was missing the
`$out/include/c++` directory which `cc-wrapper` needs to pass as an
`-isystem` to `clang`.

Closes #221891
2023-05-09 00:16:24 -07:00
Adam Joseph
c02c5f0860 wrapClangMulti: set gcc_multi_sysroot.langCC
The phoney gcc that we construct for multilib was missing the
`langCC` attribute, which `cc-wrapper` needs in order to decide
whether or not to add gcc's `libstdc++` headers as an `-isystem` for
`clang`.
2023-05-09 00:16:24 -07:00
Adam Joseph
0e9ef0a07d cc-wrapper: when merging gcc32 and gcc64, merge libgcc as well
Our gcc_multi and glibc_multi expressions merge together a
32-bit-targeted and 64-bit-targeted gcc.  However they do not thread
through the passthru.libgcc from these merged gccs.

This commit corrects that.

It also extends passthru.libgcc to allow a *list* rather than just a
single outpath.

Resolves part of #221891 (at least getting it back to the error
message it gave before).
2023-05-09 00:16:24 -07:00
fetsorn
91e7191660 llvm: fix typos
"verion" -> "version"
2023-05-08 21:05:07 +04:00
github-actions[bot]
c0860aa88a
Merge master into staging-next 2023-05-05 18:01:12 +00:00
Domen Kožar
6cf7bb9998
Merge pull request #225197 from stephank/feat/swift58
swift: 5.7.3 -> 5.8
2023-05-05 13:58:07 +01:00
github-actions[bot]
bf19e21376
Merge master into staging-next 2023-05-04 12:01:18 +00:00
Weijia Wang
dbea9194da
Merge pull request #229833 from wegank/llvm-darwin-hotfix
llvmPackages_16.llvm: fix postPatch on darwin
2023-05-04 13:03:42 +03:00
Weijia Wang
fd155c2a94 llvmPackages_16.llvm: avoid calling roundevenf on darwin 2023-05-04 12:59:57 +03:00
Weijia Wang
3c7fba2b0f llvmPackages_16.llvm: fix postPatch on darwin 2023-05-04 12:59:53 +03:00
misuzu
d4c2564bb6 llvmPackages_16.llvm: fix build on armv7l-linux 2023-05-04 08:55:00 +03:00
github-actions[bot]
9546b65417
Merge master into staging-next 2023-05-04 00:02:30 +00:00
Michael Weiss
b8960cd250
Merge pull request #223282 from RaitoBezarius/llvmPackages_16
llvmPackages_16: init
2023-05-03 23:56:51 +02:00
Stéphan Kochen
c96a05a293 llvmPackages_15.compiler-rt: fix missing builtins
Darwin-specific builtins were present on x86-64-darwin, but not on
aarch64-darwin. This is the same issue as #186575, but while the fixes
were correctly applied to LLVM 15, we were still disabling the build of
builtins on aarch64-darwin. Likely just a confusion.
2023-04-30 15:03:19 +02:00
github-actions[bot]
b4cc17e044
Merge staging-next into staging 2023-04-30 06:01:51 +00:00
github-actions[bot]
a996545f31
Merge master into staging-next 2023-04-30 06:01:07 +00:00
Sandro
39da9b3c34
Merge pull request #225281 from networkException/deprecate-omahaproxy 2023-04-30 02:20:37 +02:00
Alyssa Ross
2839c94f1e pkgsLLVM.stdenv: use clangNoLibc when libc is null
clangNoLibc always uses LLVM bintools, so it still has the useLLVM
semantics.
2023-04-28 10:01:22 +00:00
Alyssa Ross
3e0cb1ab7d compiler-rt: use -ffreestanding when no libc
This fixes building for x86_64-windows with no libc (for UEFI).
Otherwise, it would try to include a malloc header.
2023-04-28 10:01:22 +00:00
networkException
7b9110eba4
llvm: use versionhistory.googleapis.com over omahaproxy.appspot.com
Version information previously available at omahaproxy.appspot.com will
have to be retrieved from versionhistory.googleapis.com in the future.

See https://groups.google.com/a/chromium.org/g/chromium-dev/c/uH-nFrOLWtE/m/PhUj_inyAQAJ
See https://github.com/ungoogled-software/ungoogled-chromium/pull/2260
2023-04-21 21:36:35 +02:00
github-actions[bot]
3fb2e4810a
Merge staging-next into staging 2023-04-20 00:02:45 +00:00
github-actions[bot]
e3d1e50acd
Merge master into staging-next 2023-04-20 00:02:04 +00:00
Ryan Lahfa
df7e6764f2
Merge pull request #222903 from rrbutani/fix/llvm-git-openmp-cross
llvmPackages_git.openmp: apply #197674 (fix cross compile)
2023-04-20 00:45:07 +02:00
Ryan Lahfa
01a6895df7
Merge pull request #222902 from rrbutani/fix/llvm-git-disable-libpfm
llvmPackages_git: apply #205355 (disable libpfm on non-Linux)
2023-04-20 00:44:32 +02:00
Ryan Lahfa
89e48962e3
Merge pull request #223255 from NixOS/llvmPackages_git.libcxx-tests
llvmPackages_git.libcxx: LLVM15 changes and libcxxrt on FreeBSD
2023-04-20 00:43:28 +02:00
Adam Joseph
2e77eb8190 clang_15: fix build!=(host==target) cross compilation
clang_15 appears to not cross compile in the build!=(host==target)
case due to two problems, which this commit fixes:

- It trips -Wmaybe-uninitialized on recent gcc, but only in the
  build!=host case (likely due to #ifdefs)

- Two more buildPlatform tools have been added:
  clang-tidy-confusable-chars-gen and clang-pseudo-gen

Co-authored-by: Rahul Butani <rrbutani@users.noreply.github.com>
2023-04-19 01:06:08 +00:00
github-actions[bot]
a851087ffa
Merge staging-next into staging 2023-04-18 00:02:42 +00:00
Rahul Butani
98182aec04 llvmPackages_git: unstable-2022-26-07 → 15.0.7
bumping `llvmPackages_git` to match `llvmPackages_15`; this will let us
continuing bringing `llvmPackages_git` to parity with `llvmPackages_15`
without needing to invest time and effort into getting the current
llvmPackages_git's commit's test suite to pass under all the platforms,
etc.

this will also allow us to begin diffing derivations between
`llvmPackages_15` and `llvmPackages_git` as a way of tracking down
remaining differences between the package sets
2023-04-17 20:10:41 +00:00
Rahul Butani
a77eef2bb9 llvmPackages_git: expose the release information and monorepo source as overridable args
backport of d231d18e4a from #194634
(llvmPackages_15)
2023-04-17 20:10:41 +00:00
Rahul Butani
4917dc751c llvmPackages_git.llvm: add checks for the LLVM version
this is a backport of 8afa321b8a
from #194634 (llvmPackages_15)
2023-04-17 20:10:41 +00:00
Vladimír Čunát
f2186222c6
Merge #225846: cc-wrapper: deunify clang/gcc handling of -B
...into staging
2023-04-16 09:59:54 +02:00
Ryan Lahfa
dde4134fae
Merge pull request #223256 from NixOS/llvmPackages_git.compiler-rt
llvmPackages_git.compiler-rt: disable iPhone simulator
2023-04-15 19:49:08 +02:00
Adam Joseph
6f8a69ee31 Revert "llvmPackages_13.compiler-rt-libc: also apply tmp hack"
This reverts commit 9bf18e069e.
2023-04-12 10:26:24 -07:00
Adam Joseph
15e2a735f8 Revert "cc-wrapper: add optional temporary hack for -B"
This reverts commit ac3acd956f.
2023-04-12 10:26:23 -07:00
Vladimír Čunát
9bf18e069e
llvmPackages_13.compiler-rt-libc: also apply tmp hack
This part got forgotten in commit ac3acd956f.
2023-04-12 11:26:19 +02:00
Vladimír Čunát
ac3acd956f
cc-wrapper: add optional temporary hack for -B
This fixes parts in llvmPackages_{13,rocm}
e.g. build .clang for testing.
Longterm mass-rebuild fix should come in PR #225846
2023-04-12 09:37:24 +02:00
Raito Bezarius
2c627d9c70 llvmPackages_16: init 2023-04-10 10:47:45 +02:00
Someone Serge
378c0c6983
python3Packages.openai-triton: init at 2.0.0 2023-04-08 02:46:54 +03:00
Rahul Butani
6707fa4056 llvmPackages_git.compiler-rt: fixes for Darwin
Partial port of 00839fea22
("llvmPackages_15.compiler-rt: fixes for Darwin")

see: https://github.com/NixOS/nixpkgs/pull/194634#issuecomment-1272116014
2023-04-05 17:29:36 +02:00
Raito Bezarius
92bf933890 llvmPackages_git.libcxx: remove preInstall phase for Darwin
This has not been added for `llvmPackages_15.libcxx`, therefore, we do not need
it anymore.
2023-04-05 17:27:24 +02:00
Rahul Butani
5fbf2cd1a0 llvmPackages_git: apply #211230 to llvmPackages_git
Port of 4fabcf4945 ("llvmPackages_15:
apply #211230 to llvmPackages_15").

See the comments here for context: https://github.com/NixOS/nixpkgs/pull/194634#discussion_r1089389188

Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
2023-04-05 17:26:52 +02:00
Rahul Butani
2e453ee51b llvmPackages_git.libcxxabi: fix cycles that arise when stdenv is the LLVM stdenv
Port of 8db72e3b7e
("llvmPackages_15.libcxxabi: fix cycles that arise when `stdenv` is the
LLVM stdenv").
2023-04-05 17:26:20 +02:00
Rahul Butani
18d9f16d0a llvmPackages_git.libcxx: updates from LLVM15
Port of bc4dbee115 ("llvmPackages_15:
updates for LLVM 15").

None of the patches required any touch-up; the only change of note is:
  - due to changes in the libc++/libc++abi build
    (https://reviews.llvm.org/D120719 and https://reviews.llvm.org/D131037)
    we have to add an extra build option to the libc++ header only
    build that sidesteps bits of the libc++ build config that assume
    libc++-abi is present in the build:
    4f827318e3/libcxx/src/CMakeLists.txt (L255-L256)

Rather than maintaining a precise set of build options that let us dodge
referencing libc++-abi variables in the libc++ header only build, we set
`LIBCXX_CXX_ABI` to `none`, as suggested by @lovesegfault.

More discussion about this here: https://github.com/NixOS/nixpkgs/pull/194634#discussion_r990267037

Co-authored-by: Bernardo Meurer <bernardo@meurer.org>
2023-04-05 17:25:12 +02:00
Rahul Butani
61b348f0c6
llvmPackages_git.openmp: apply #197674 (fix cross compile)
this was backported to `llvmPackages_15` in
81ef82a029
2023-04-03 10:36:54 -05:00
Rahul Butani
75fed51e18
llvmPackages_git: apply #205355 (disable libpfm on non-Linux)
this was applied to `llvmPackages_15` in 81ef82a029
(though I appear to have forgotten to mention it in the commit message...)
2023-04-03 10:33:05 -05:00
Rahul Butani
e505ffd251
llvmPackages_git: apply #190936 (fix pkgsStatic LLVM build)
This was applied to `llvmPackages_15` in
81ef82a029
2023-04-03 10:30:55 -05:00
Weijia Wang
a94d9447ef llvmPackages_rocm.llvm: mark as broken on aarch64-linux 2023-03-30 14:15:27 +03:00
Ryan Lahfa
43c847c903
Merge pull request #222220 from alyssais/llvmPackages_git.llvm-tests-macos
llvmPackages_git.llvm: run the tests on macOS
2023-03-28 18:03:57 +02:00
Rahul Butani
5a4cfac5ec llvmPackages_git.llvm: fix the tests on x86_64-darwin
Port of eafb8fbd32 ("llvmPackages_15.llvm: fix the tests on `x86_64-darwin`")
2023-03-28 13:08:39 +02:00
Rahul Butani
3f9a9ad9f2 llvmPackages_git.llvm: adjust a path, skip an xfail test on darwin
Port of 0ee52512f0 ("llvmPackages_15.llvm:
adjust a path, skip an xfail test on darwin")
2023-03-26 17:55:00 +02:00