3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers
sternenseemann 3530837417 llvmPackages*.clang: fix linker invocation with LLVMgold plugin
When using GNU binutils, clang passes the LLVMgold.so plugin to the
linker for certain operations that require special support in the linker
like doing link time optimization (LTO). When passing the plugin to the
linker's command line, clang assumes that llvm and itself are installed
in the same prefix and thus `/path/to/clang/bin/../lib/LLVMgold.so` is
the plugin.

Since we install clang and llvm to separate store paths, this assumption
does not hold. When clang-unwrapped only had a single output, we worked
around this issue by symlinking `$out/lib/LLVMgold.so` to
`${llvm}/lib/LLVMgold.so`. However since we split all llvm packages into
multiple outputs clang's `$out` no longer has a lib directory and clang
can't discover clangs lib output on its own. As a result LTO was broken.

Instead of introducing yet another hack and having a symlink to
LLVMgold.so in `$out/lib` (despite having `$lib/lib` as well), we patch
clang to use a hard coded path to `${libllvm.lib}/lib` for discovering
`LLVMgold.so`.

Resolves #123361.
2021-05-18 16:15:03 +02:00
..
4th
abcl
acme
adoptopenjdk-bin doptopenjdk: set CLASSPATH 2021-05-02 16:19:30 +09:00
adoptopenjdk-icedtea-web
aldor
aliceml
apache-flex-sdk
arachne-pnr
asn1c
aspectj
ats
ats2
avra
bigloo
binaryen
bluespec bluespec: unstable-2021.02.14 -> 2021.03.29 2021-04-03 09:58:05 -05:00
bs-platform
bupc
cakelisp
carp
cc65
ccl
chez
chicken
ciao ciao: 1.19.0 -> 1.20.0 2021-04-10 06:44:18 +00:00
clasp
clean
closure
cmdstan
cmucl
colm
compcert compcert: add support for Coq 8.13 2021-05-07 08:35:13 +02:00
computecpp
copper copper: broken on darwin (#123030) 2021-05-14 17:35:55 -04:00
coreclr
crystal crystal: fix llvm_config 2021-05-08 01:29:18 -07:00
crystal2nix crystal2nix: 0.1.0 -> 0.1.1 2021-03-29 18:12:25 +08:00
cudatoolkit cudatoolkit-{9,9_0,9_1,9_2}: remove 2021-04-18 11:55:10 +02:00
dale dale: fix build 2021-05-08 01:29:18 -07:00
dasm
dev86
dmd dmd: mark unbroken (#119647) 2021-04-16 21:33:08 +02:00
dotnet dotnetCorePackages.sdk_5_0: 5.0.200 -> 5.0.202 2021-04-15 19:44:38 +08:00
dtc dtc: add yaml support and enable tests (#118700) 2021-04-09 02:02:36 +02:00
ecl ecl: add changelog 2021-04-01 17:59:49 +02:00
edk2 edk2: 202011 -> 202102 2021-03-30 02:20:31 +02:00
eli
elm elm-instrument: fix build 2021-05-13 09:36:51 -07:00
emscripten
eql
factor-lang
fasm
fasmg
flasm
flutter
flux
fpc
fsharp
fsharp41
fstar
gambit
gavrasm
gcc Merge #115235: gcc: native aarch64-darwin support 2021-05-11 12:12:04 +02:00
gcc-arm-embedded
gcl
gerbil
gforth
ghc haskell.compiler.ghcHEAD: 8.11.20200824 -> 9.3.20210504 2021-05-08 13:03:55 +02:00
ghcjs-ng treewide: use https for github URIs 2021-04-17 17:59:08 +02:00
ghdl ghdl-llvm: fix llvm output selection 2021-05-12 10:51:11 +02:00
gleam gleam: 0.15.0 -> 0.15.1 2021-05-09 14:37:43 +09:00
glslang
gnatboot
gnu-cobol
gnu-smalltalk
go go_2-dev: 2021-03-22 -> 2021-04-13 2021-05-17 06:15:35 +10:00
go-jsonnet
gprolog
graalvm lzma: deprecate alias 2021-04-04 19:49:52 +02:00
gwt
halide
haxe haxe: build versions < 4.2 with OCaml 4.10 2021-04-27 08:42:50 +02:00
hhvm
hop
iasl
idris2
inform6 inform6: fix darwin build 2021-05-16 14:31:43 -07:00
inform7
intel-graphics-compiler llvmPackages: Multuple outputs for everythting 2021-04-30 05:41:00 +00:00
intercal
ios-cross-compile
ispc ispc: fix llvm build 2021-05-08 18:13:45 -07:00
jasmin
javacard-devkit
jetbrains-jdk jetbrains.jdk: 11.0.10-b37 -> 11.0.10-b1427 2021-04-14 21:54:58 +02:00
jsonnet
julia julia: add README 2021-04-28 06:55:53 +00:00
juniper juniper: init at 2.3.0 2021-04-11 14:51:54 -04:00
jwasm
koka koka: make sure runtime dependencies are host -> target 2021-04-25 12:36:06 +02:00
kotlin kotlin: 1.4.21 -> 1.4.32 2021-05-02 14:08:43 +02:00
ldc ldc: fix build 2021-05-08 01:29:18 -07:00
llvm llvmPackages*.clang: fix linker invocation with LLVMgold plugin 2021-05-18 16:15:03 +02:00
lobster
manticore
matter-compiler
mcpp
mercury
meta-environment/meta-build-env
mezzo
microscheme
mint mint: 0.9.0 -> 0.11.0 2021-04-01 11:12:47 +08:00
miranda
mit-scheme
mkcl
mlkit
mlton
mono
mosml treewide: drop conditional makeFlag for darwin when specifiying cross-compiler 2021-02-20 01:02:08 +07:00
mozart
mruby
mrustc mrustc: fix llvm_config path 2021-05-08 01:29:18 -07:00
muon
nasm
neko neko: try to list applying licenses more accurately 2021-03-25 22:11:00 +01:00
nextpnr
nim nim: 1.4.4 -> 1.4.6 2021-05-02 10:52:26 +02:00
nvidia-cg-toolkit
obliv-c
ocaml
opa
open-watcom-bin
opendylan
openjdk openjdk: move unzip to nativeBuildInputs 2021-05-16 19:29:28 -07:00
openspin
ophis ophis: fix build 2021-05-01 21:22:32 +02:00
oraclejdk oraclejdk*: add meta.mainProgram 2021-04-29 16:01:18 +02:00
orc
osl
owl-lisp
paco
pakcs treewide: remove gnidorah 2021-04-30 01:48:19 +02:00
pforth
picat
polyml
ponyc pony-corral: 0.4.1 -> 0.5.0 2021-05-08 17:45:16 -07:00
purescript
qbe
rasm
reason reason: 3.6.2 → 3.7.0 2021-04-07 20:34:26 +02:00
rgbds
roslyn roslyn: regenerate deps 2021-04-15 19:44:38 +08:00
rust Merge staging-next into staging 2021-05-16 06:22:08 +00:00
sagittarius-scheme
sbcl sbcl: update to 2.1.2 and add arm64-darwin 2021-05-17 00:28:04 +09:00
scala dotty: 0.26.0-RC1 -> 3.0.0-RC3 2021-04-27 22:26:25 +02:00
sdcc Merge pull request #119701 from Stekke/sdcc 2021-04-18 20:18:31 +01:00
seexpr
serpent
shaderc
sjasmplus
smlnj
solc solc: remove 0.7 release 2021-05-16 22:44:21 -07:00
souffle
spasm-ng
spirv-llvm-translator spirv-llvm-translator: fix llvm build 2021-05-08 18:13:45 -07:00
squeak
stalin
swi-prolog swiProlog: fix darwin build 2021-05-11 21:10:57 +02:00
swift
terra
teyjus
tinycc
tinygo
tvm
unison
urn
urweb
vala Merge #121780: treewide meta.maintainers tweaks 2021-05-08 10:47:08 +02:00
vlang
vyper
wcc
wla-dx
x11basic
xa dxa: add fallback download url 2021-04-14 07:45:10 +02:00
yap
yasm
yosys yosys: 0.9+3962 -> 0.9+4052 2021-03-31 23:11:34 +02:00
z88dk z88dk: 2.0 -> 2.1 2021-05-11 19:46:01 +07:00
zasm
zig Merge branch 'master' into staging-next 2021-05-14 22:27:34 +02:00
zulu zulu*: add meta.mainProgram 2021-04-29 15:28:57 +02:00
zz treewide: fix cargoSha256/cargoHash 2021-05-08 00:36:37 -07:00