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
acme
adoptopenjdk-icedtea-web
alan
ante
apache-flex-sdk
arachne-pnr
armips
arocc
asn1c
aspectj
ats
ats2
august
avra
ballerina
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
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
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
cmdstan treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
cmucl
codon treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
coffeescript
colm
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
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
erg erg: 0.6.44 -> 0.6.45 2024-10-04 21:45:22 +00:00
factor-lang
fasm treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
fasmg
fbc
firrtl
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
fpc treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
fsharp
fstar
gambit treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
gavrasm
gbforth
gcc Merge remote-tracking branch 'origin/master' into staging-next 2024-10-01 15:09:28 +03:00
gcc-arm-embedded
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
gnat-bootstrap
gnostic
gnu-cim
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
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
idris2 treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
inform6
inform7 treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
inklecate
intel-graphics-compiler
ios-cross-compile
ispc treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
jasmin
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
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
kaitai-struct-compiler
kind2 treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
koka
kotlin
lesscpy
ligo treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
lingua-franca
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
manticore
matter-compiler
mercury
meta-environment/meta-build-env
mezzo
microscheme
minimacy treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
mint
miranda
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
mozart treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
mruby
mrustc
muonlang
myrddin treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
nasm
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
nvidia-cg-toolkit
obliv-c
ocaml treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
open-watcom
openjdk Merge master into staging-next 2024-10-08 01:23:55 +01:00
opensmalltalk-vm
openspin
opensycl
ophis
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
p4c
paco
pakcs pakcs: build on ghc9 2024-10-05 21:30:18 +02:00
passerine
picat
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
reason
rgbds
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
scryer-prolog treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
semeru-bin
serpent
shaderc treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
silice
sjasmplus
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
spirv-llvm-translator spirv-llvm-translator: fix formatting 2024-10-06 09:24:58 -07:00
squeak
stalin
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
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
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
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
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