nixpkgs/pkgs/development/compilers
sternenseemann 1d6675e530 llvmPackages_13: build from filtered monorepoSrc
This change implements a leftover task from #307211, namely passing
monorepoSrc to the different llvmPackages_13 package expressions. Before
this change, all packages llvmPackages_13 would be built from a
subdirectory of the full LLVM monorepo tree. After this change only the
relevant directories are made available at build time. This

- reduces the size of the source that needs to be made available to the
  builder.
- prevents LLVM from sidestepping our instructions and including extra
  sources from other directories it shouldn't.

Since LLVM 12 and 13 don't have the `cmake` directory at the top level,
the runCommand expressions filtering the source need to be adjusted, but
this causes no rebuild for any other LLVM version (ofborg should confirm
this).

The only problem encountered was in lld:

- We need to make the patch to the inclusion of libunwind headers
  unconditional now. lld needs this on non-darwin as well. In the
  full monorepo, LLVM_MAIN_SRC_DIR would be set correctly, so the
  patch wasn't necessary.
- The substitute mechanism for LLVM 12 and 13 can't be unified yet since
  LLVM 12 still uses a non monorepo build, so we come up with a
  different LLVM_MAIN_SRC_DIR.

Change was tested by building the following expression on x86_64-linux.

    with import ./. {};
    builtins.removeAttrs llvmPackages_13 [ "lldb" "lldbPlugins" ]'

lld was also tested on aarch64-darwin.
2024-10-14 12:15:32 +02:00
..
abcl Merge pull request #321645 from Uthar/abcl-cffi-fix 2024-06-25 14:58:45 +00:00
acme treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
adoptopenjdk-icedtea-web
alan treewide: Remove the definite article from meta.description 2024-06-09 23:08:46 +02:00
ante treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
apache-flex-sdk
arachne-pnr
armips treewide: Remove ending period from meta.description 2024-06-09 23:04:51 +02:00
arocc arocc: init at 0-unstable-06-01 2024-07-27 19:43:41 -07:00
asn1c
aspectj treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
ats
ats2 ats2: remove with statements 2024-08-18 06:31:14 -07:00
august treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
avra
ballerina ballerina: 2201.9.1 -> 2201.9.2 2024-07-10 02:33:48 +00:00
bfc treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
bigloo treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
binaryen treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
bluespec verilog: rename to actual name iverilog 2024-07-15 08:36:13 -07:00
c0 treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
c3c c3c: 0.6.2 -> 0.6.3 2024-10-03 13:06:32 +00:00
cairo cairo-lang: 2.8.2 -> 2.8.4 2024-10-07 12:33:50 +00:00
cakelisp treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
carp treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
ccl treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
chez treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
chez-racket chez-racket: Fix build failure 2024-09-26 07:15:25 -04:00
chicken treewide: replace webkitgtk to webkitgtk_4_0 2024-10-11 17:23:43 -06:00
ciao treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
circt circt: 1.86.0 -> 1.87.0 2024-10-08 12:20:28 +08:00
clasp treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
clean
closure Merge pull request #298255 from r-ryantm/auto-update/closurecompiler 2024-07-02 19:15:22 +05:30
cmdstan treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
cmucl treewide: Remove the definite article from meta.description 2024-06-09 23:08:46 +02:00
codon treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
coffeescript treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
colm treewide: add -Wno-error= due to compilation error with gcc_14 2024-09-11 01:44:17 -06:00
computecpp
cone
copper
corretto corretto{11,17,21}: apply nixfmt 2024-09-26 11:12:35 +02:00
critcl
crystal treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
crystal2nix
dale
dart treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
dasm
dictu treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
djgpp treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
dotnet Merge master into staging-next 2024-09-25 06:04:53 +00:00
dtc dtc: 1.7.0 -> 1.7.1 2024-09-30 09:50:28 +01:00
ecl treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
eli
elm Bump elmPackages (#344866) 2024-10-01 20:06:15 +02:00
emscripten emscripten: 3.1.55 -> 3.1.64 2024-07-24 11:54:01 -04:00
erg erg: 0.6.44 -> 0.6.45 2024-10-04 21:45:22 +00:00
factor-lang treewide: remove vrthra from meta.maintainers [no orphans] 2024-07-07 12:18:57 -03:00
fasm treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
fasmg
fbc treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
firrtl treewide: remove unused with statements from maintainer lists 2024-07-29 10:06:20 +08:00
flasm
flix flix: 0.50.0 -> 0.51.0 2024-09-27 02:12:32 +00:00
flutter flutter326: init at 3.26.0-0.1pre 2024-10-07 11:04:31 -07:00
flux treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
fpc treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
fsharp treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
fstar fstar: 2024.01.13 -> 2024.09.05 2024-09-06 10:48:40 +00:00
gambit treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
gavrasm
gbforth treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
gcc Merge remote-tracking branch 'origin/master' into staging-next 2024-10-01 15:09:28 +03:00
gcc-arm-embedded gcc-arm-embedded: 13.2.rel1 -> 13.3.rel1 2024-09-05 09:15:33 +02:00
gcl
gerbil treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
gforth treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
ghc haskell.compiler.*: don't build profiled libs when host == riscv64 2024-10-05 12:55:30 +02:00
ghcjs treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
gleam gleam: 1.5.0 -> 1.5.1 2024-09-30 00:27:00 +00:00
glslang glslang: build shared libraries 2024-09-19 23:39:05 -05:00
gmqcc pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
gnat-bootstrap
gnostic treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
gnu-cim treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
go Merge master into staging-next 2024-10-04 12:05:36 +00:00
gprolog treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
graalvm/community-edition buildGraalvm: move files in $out to $out/share 2024-10-03 14:43:14 +01:00
gwt treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
halide treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
haxe treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
heptagon
hop treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
idris2 treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
inform6 inform6: 6.42-r2 -> 6.42-r4 2024-08-04 02:09:26 +00:00
inform7 treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
inklecate
intel-graphics-compiler intel-graphics-compiler: 1.0.17193.4 -> 1.0.17384.11 2024-08-27 23:35:23 +02:00
ios-cross-compile
ispc treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
jasmin treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
jasmin-compiler jasmin-compiler: 2024.07.0 → 2024.07.1 2024-10-10 06:36:31 +02:00
javacard-devkit
jetbrains-jdk treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
jrsonnet treewide: skip generating shell completions using $out/bin/… when cross compiling 2024-08-04 10:50:48 +09:00
jsonnet treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
julia treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
juniper juniper: 2.3.0 -> 4.0.0, use buildDotnetModule 2024-07-29 22:41:55 +01:00
kaitai-struct-compiler
kind2 treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
koka pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
kotlin treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
lesscpy treewide: sha256 -> hash attribute for pypi fetchers 2024-07-14 01:25:22 +08:00
ligo treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
lingua-franca pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
llvm llvmPackages_13: build from filtered monorepoSrc 2024-10-14 12:15:32 +02:00
lobster treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
lunarml lunarml: 0.1.0 → 0.2.0 2024-08-06 22:05:03 +07:00
manticore treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
matter-compiler
mercury treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
meta-environment/meta-build-env
mezzo mezzo: remove with statements 2024-08-18 06:31:15 -07:00
microscheme treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
minimacy treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
mint treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
miranda miranda: fix build with clang 2024-04-21 21:40:38 -04:00
mit-scheme treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
mkcl treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
mlkit mlkit: 4.7.11 -> 4.7.12 2024-09-24 03:13:03 +00:00
mlton treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
mono treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
mosml treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
mozart treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
mruby treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
mrustc pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
muonlang
myrddin treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
nasm treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
neko treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
nim nim: 2.0.8 -> 2.2.0; nim: init updatescript; 2024-10-06 12:12:30 +00:00
nqc treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
nvidia-cg-toolkit
obliv-c treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
ocaml treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
open-watcom treewide: Remove the definite article from meta.description 2024-06-09 23:08:46 +02:00
openjdk Merge master into staging-next 2024-10-08 01:23:55 +01:00
opensmalltalk-vm treewide: Remove the definite article from meta.description 2024-06-09 23:08:46 +02:00
openspin
opensycl opensycl: add cudaSupport 2024-06-27 15:48:14 +00:00
ophis treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
oraclejdk
orc Merge branch 'master' into staging-next 2024-09-25 06:05:01 +03:00
osl osl: 1.13.10.0 -> 1.13.11.0 (#341823) 2024-09-25 12:14:10 +09:00
owl-lisp treewide: sha256 -> hash attribute for gitlab.com fetchers 2024-07-13 22:28:37 +08:00
p4c p4c: fix strict deps 2024-07-25 07:19:31 +00:00
paco treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
pakcs pakcs: build on ghc9 2024-10-05 21:30:18 +02:00
passerine treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
picat picat: 3.6 -> 3.6#8 2024-07-30 12:27:41 -05:00
polyml treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
ponyc treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
purescript treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
qbe treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
reason ocamlPackages.reason: 3.11.0 -> 3.12.0 2024-08-26 07:50:40 +02:00
rgbds tree-wide: enable LTO on Darwin 2024-07-20 03:19:54 -04:00
rml
roslyn
rust Merge branch 'master' into staging-next 2024-09-25 06:05:01 +03:00
sagittarius-scheme treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
sbcl sbcl: 2.4.8 -> 2.4.9 2024-09-29 23:33:27 -04:00
scala scala{,-next}: add meta.mainProgram 2024-10-09 12:07:25 +02:00
scala-runners treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
scryer-prolog treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
semeru-bin {{temurin,semeru{,-jre}}-bin-16,temurin{,-jre}-bin-{18,19,20}}: drop 2024-08-01 13:46:59 +01:00
serpent treewide: remove unused with statements from maintainer lists 2024-07-29 10:06:20 +08:00
shaderc treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
silice silice: 0-unstable-2024-07-15 -> 0-unstable-2024-07-22 2024-08-01 17:16:00 +00:00
sjasmplus treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
smlnj treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
solc treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
souffle treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
spasm-ng spasm-ng: Add ASM header files 2024-08-23 19:23:28 -04:00
spirv-llvm-translator spirv-llvm-translator: fix formatting 2024-10-06 09:24:58 -07:00
squeak
stalin treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
swi-prolog swi-prolog: rename from swiProlog, 9.2.6 -> 9.2.7, fix extraPacks (#340314) 2024-09-29 18:06:36 -06:00
swift Merge branch 'master' into staging-next 2024-09-25 06:05:01 +03:00
temurin-bin treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
terra treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
teyjus treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
tinycc treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
tinygo treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
tvm tvm: 0.16.0 -> 0.17.0 2024-07-26 15:25:11 +00:00
typescript typescript: 5.6.2 -> 5.6.3 2024-10-09 04:28:44 +00:00
uasm treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
unison unison-ucm: 0.5.26 -> 0.5.27 2024-10-06 12:01:33 +02:00
urn
urweb treewide: fix pg_config / postgresql headers moved to dev output 2024-08-24 15:44:10 +02:00
vala treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
vlang vlang: 0.4.4 -> 0.4.8 2024-10-11 11:59:13 +02:00
vyper vyper: drop useless pytest-runner 2024-09-15 14:58:57 +02:00
wcc
wla-dx
x11basic treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
yap treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
yasm
yosys python312Packages.yosys: 0.45 -> 0.46 2024-10-09 19:05:07 +00:00
z88dk z88dk: correct install location; make tests work 2024-09-16 08:45:07 -07:00
zasm
zig treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
zulu treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00