Commit Graph

631 Commits

Author SHA1 Message Date
Tristan Ross
c77f6919d7 llvmPackages_{13,14,15,16,17,18,git}.clang: commonify patches 2024-08-09 12:05:13 -07:00
Tristan Ross
8a2d085465 llvmPackages_{13,14,15,16,17,18,git}.lldbPlugins: add recurse into attrs 2024-08-09 10:18:14 -07:00
Nano Twerpus
d390ce7dfa llvmPackages_git.compiler-rt: disable building ctx_profile when build sanitizers are disabled
https://github.com/llvm/llvm-project/pull/92456#issuecomment-2118873554

Fixes #329838
2024-08-07 22:56:01 -04:00
Vladimír Čunát
d4720e9c1e Merge branch 'staging-next' into staging
There was a nontrivial conflict in pkgs/stdenv/linux/bootstrap-tools*
(reorganizing code vs. modifying it)  I hope I really got it right.
2024-08-05 11:05:55 +02:00
Tristan Ross
0b07b7e4b7 llvmPackages: fix wasm with common opts 2024-08-03 23:07:14 -07:00
tomberek
ad0f21f9d7 Merge pull request #330316 from ExpidusOS/feat/llvm-common-opts
llvmPackages: improve gcc compatibility
2024-08-04 01:32:48 -04:00
Sigmanificient
63d05d989e pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
Nikodem Rabuliński
af924bbaad llef: unstable-2023-10-18 -> 1.1.0 2024-08-03 09:10:37 +02:00
github-actions[bot]
b0709876cb Merge staging-next into staging 2024-08-01 12:01:44 +00:00
K900
a4a42b3aec Merge remote-tracking branch 'origin/staging-next' into staging 2024-08-01 08:57:50 +03:00
pca006132
e45b1fc9b5 llvmPackages.bolt: init at 19.0.0-unstable-2024-07-08 2024-07-31 22:40:48 -07:00
Tristan Ross
928c7787d1 Merge pull request #327038 from numinit/llvm-compiler-rt-python3
llvmPackages_13.compiler-rt-libc: fix python3 setuptools dependency
2024-07-31 11:53:01 -07:00
Tristan Ross
019d091938 llvmPackages.clangUseLLVM: add --undefined-version by default
Majority of packages with a version script have broken version scripts,
this will likely result in us adding this flag to many packages. To keep
things simple, just add it as a default.
2024-07-31 07:06:58 -07:00
K900
4f29b5a16b Merge remote-tracking branch 'origin/staging-next' into staging 2024-07-31 08:57:17 +03:00
Tristan Ross
b11f469249 llvmPackages.clang: set CLANG_DEFAULT_CXX_STDLIB for pkgsLLVM 2024-07-30 19:51:17 -07:00
John Ericson
7043e14baa Merge pull request #297144 from s1341/fix_compiler_rt
llvm: Fix compiler-rt missing sanitizers when using useLLVM
2024-07-29 09:19:42 -05:00
Robert Scott
48bde3a189 cc-wrapper: add support for pacret hardening flag on aarch64 2024-07-28 19:27:14 +01:00
Emily
8a837af302 Merge pull request #326819 from risicle/ris-shadowstack
cc-wrapper: add support for `shadowstack` hardening flag
2024-07-28 19:07:52 +01:00
Robert Scott
7a4736e1ef llvm: disable shadowstack hardening flag 2024-07-28 17:40:54 +01:00
s1341
344902e098 llvm: Fix compiler-rt missing sanitizers when using useLLVM 2024-07-26 19:49:09 -04:00
github-actions[bot]
12ea252962 Merge master into staging-next 2024-07-25 06:01:22 +00:00
Tristan Ross
afd2f214b0 llvmPackages_git.compiler-rt: fix darwin patch (#329796) 2024-07-25 00:21:39 -04:00
github-actions[bot]
5b4db4db1c Merge master into staging-next 2024-07-23 06:01:09 +00:00
Tristan Ross
2deb3dd45f llvmPackages_git.compiler-rt: disable codesign 2024-07-22 18:19:11 -07:00
Vladimír Čunát
577f40b8a9 Merge branch 'staging' into staging-next 2024-07-20 16:12:24 +02:00
Alyssa Ross
29934c9408 llvm: fix broken llvm-config-native for canExecute
Since a0b4b85bfa ("llvm: Avoid cross compiling if the build platform
can execute host binaries"), the flags to get a working
llvm-config-native are not used when the build platform can execute
host binaries, resulting in a broken llvm-config-native, and therefore
a broken mesa, but since build can execute host, we don't need a
separate llvm-config-native at all — we can just use the normal
llvm-config.

Fixes: a0b4b85bfa ("llvm: Avoid cross compiling if the build platform can execute host binaries")
2024-07-20 10:09:32 +02:00
Morgan Jones
37ba8970e7 llvmPackages_13.compiler-rt-libc: don't use distutils.spawn
This function was removed in Python 3.12 and seems to only be used in
LLVM 13, despite the Python file this is used in being present in
LLVM 12 and 14. The merge_archives.py file was removed in LLVM 15.
2024-07-19 01:51:47 -07:00
John Ericson
8f8c3c9c3b Merge pull request #326644 from obsidiansystems/openbsd-llvm
llvm_18, lld_18: Patch to support more OpenBSD sections
2024-07-16 16:07:28 -04:00
Robert Scott
b207b6ef74 cc-wrapper: add support for shadowstack hardening flag 2024-07-14 21:25:47 +01:00
Robert Scott
57a38b02f9 llvm: make hardeningDisable of trivialautovarinit common across all llvms
its omission from llvm 17 was probably an oversight arising
from llvm 17's release leap-frogging the trivialautovarinit
PR
2024-07-14 15:26:42 +01:00
John Ericson
62a46e824b llvm_18, lld_18: Patch to support more OpenBSD sections
Without these backports (I've ensured everything has landed upstream)
the OpenBSD binaries we build will not run.
2024-07-12 14:57:34 -04:00
Randy Eckenrode
94e2edea56 Merge pull request #325525 from reckenrode/lldb-fix-mk2 2024-07-10 09:59:37 -04:00
Tristan Ross
80e3c2c5d0 llvmPackages_{13,14,15,16,17,18,git}: commonify the default.nix 2024-07-08 17:21:53 -07:00
Tristan Ross
7a95a8948b Merge pull request #324155 from paparodeo/x64-sdk11-no-rebuilds
treewide: change various flags to allow x64 darwin to default to sdk 11.0 when ready
2024-07-08 17:19:17 -07:00
Randy Eckenrode
733b2bc01d llvmPackages.lldb: combine out and lib outputs on Darwin
LLDB expects to find the location of `bin` relative to `lib`. Patching
it to know the location would cause a cycle between the `out` output and
the `lib` output, so combine the two on Darwin.

Fixes https://github.com/NixOS/nixpkgs/issues/252838.
2024-07-08 07:52:26 -04:00
github-actions[bot]
9cede82051 Merge master into staging-next 2024-07-04 12:01:10 +00:00
Masum Reza
0c4a8b4f89 Merge pull request #320472 from rhelmot/freebsd-libunwind-mess
{llvm,freebsd.libcxxrt}: Sort out references to unwind functions
2024-07-04 16:43:06 +05:30
Reno Dakota
07cba9376f treewide: only access apple_sdk.sdk when sdk < 11
update code to not assume that x64 darwin uses sdk 10.12. These changes
want to reach into apple_sdk.sdk to grab a header file which is only
required for sdk 10.12.
2024-07-03 00:03:59 +00:00
Martin Weinelt
2096642430 Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
- pkgs/os-specific/windows/mingw-w64/default.nix
2024-06-23 19:09:00 +02:00
Yueh-Shun Li
eb572c420d clang-tools: move into llvmPackages 2024-06-23 01:34:26 +05:30
Rick van Schijndel
43ce0f9ee0 Merge pull request #318256 from risicle/ris-stack-clash-protection
cc-wrapper: add stack clash protection hardening flag
2024-06-19 19:54:30 +02:00
K900
00e78b2c9a Merge pull request #319047 from K900/mesa-chop
mesa: split out the Darwin build into a separate expression
2024-06-18 23:43:19 +03:00
Artemis Tosini
f76271c4df llvm: Don't use libunwind on FreeBSD
Native builds on nixpkgs FreeBSD always use llvm's libc++ as the
C++ standard library, with libcxxrt and "libgcc" from the FreeBSD tree
providing lower level ABI functions.

However, the cross LLVM stdenv assumed that we wanted libunwind instead
of libgcc. As libgcc headers are already in FreeBSD's libc, some C++
functions failed with duplicate header errors.

Disable all references to libunwind in libcxx on FreeBSD and the LLVM
cross stdenvs for FreeBSD.
2024-06-17 00:35:55 -07:00
Peter Waller
0c3c6d879f llvmPackages.clang: don't pass -Wno-maybe-uninitialized to clang
If building clang under clang, don't pass -Wno-maybe-uninitialized;
this is a gcc-only warning and clang emits a diagnostic for every TU
about the unknown warning flag.

Signed-off-by: Peter Waller <p@pwaller.net>
2024-06-16 16:00:01 +01:00
K900
f9723bc4de treewide: get rid of ~all mesa.{drivers,osmesa,libdrm} references
mesa.drivers is basically an implementation detail and should never be used
as a dependency of other expressions. It also no longer exists on Darwin.

mesa.osmesa is very niche and should generally be avoided.

mesa.libdrm is used in exactly one place and it's irrelevant there.
2024-06-15 11:07:14 +03:00
github-actions[bot]
520c7e2ee8 Merge staging-next into staging 2024-06-15 06:01:20 +00:00
tomberek
4d950563ff Merge pull request #304141 from ExpidusOS/feat/llvm-git-2024-04-14
llvmPackages_git: update to 19.0.0-unstable-2024-06-12
2024-06-15 01:48:19 -04:00
github-actions[bot]
2a899d25c0 Merge staging-next into staging 2024-06-13 12:01:36 +00:00
Pol Dellaiera
5fcbe6f961 Merge pull request #316045 from ExpidusOS/fix/llvm-liblldb-origin
llvmPackages_{12,13,14,15,16,17,18,git}.lldb: add patch to remove origin variable
2024-06-13 09:48:30 +02:00
Tristan Ross
0621f24471 llvmPackages_git: update to 19.0.0-unstable-2024-06-12 2024-06-12 19:20:37 -07:00