Daiderd Jordan
626a95a9b4
llvm: create all versioned symlinks for libLLVM on darwin
...
Apply eb31e481475 to older versions where applicable.
2019-05-04 17:32:43 +02:00
Matthew Bauer
5c46f77249
Merge pull request #56197 from matthewbauer/cross-fixes3
...
Android and related cross fixes
2019-02-26 20:30:53 -05:00
Matthew Bauer
e36cd48b6e
llvm: don’t use targetPlatform
...
LLVM should be target independent because it will work with all
machine types. This is different from GCC where it needs to know what
target to build ahead of time.
2019-02-24 17:00:48 -05:00
Matthew Bauer
be6d030b98
llvm6: remove enableTargets
...
These are no longer used. We build all targets now.
2019-02-24 17:00:48 -05:00
Matthew Bauer
5d0b0bbf30
Merge pull request #56030 from matthewbauer/revert-72e176
...
Revert "libcxx: add linker scripts for libc++.a to ensure libc++abi.a…
2019-02-19 11:45:37 -05:00
Matthew Bauer
8cb7ea7dae
Revert "libcxx: add linker scripts for libc++.a to ensure libc++abi.a is properly linked"
...
This reverts commit 72e1764199
.
This causes the GHC panic reported in issue #55848 .
2019-02-18 20:52:08 -05:00
Matthew Bauer
bb3683d778
Merge pull request #54624 from matthewbauer/libcxx
...
cc-wrapper: add libcxx for libcxxClang
2019-01-27 13:55:18 -05:00
Matthew Bauer
77550df8e6
cc-wrapper: add libcxx for libcxxClang
...
clang needs to find headers + libraries for compiling with libc++. We
need to add a libcxx argument to cc-wrapper. This means you do not
have to pass in c++ headers directly.
This resolves the last case remaining of #30670 . Darwin clang++ now
works properly.
Fixes #30670
2019-01-26 22:45:15 -05:00
Orivej Desh
d6f401e132
llvm_6, llvm_7: build all default targets ( #53941 )
...
This makes LLVM tools (including dependent tools such as LLD) readily useful in
more situations, foresees such needed additions as BPF and NVPTX, and brings
llvm_6 and newer on par with the current default llvm_5.
2019-01-15 04:59:49 +00:00
Will Dietz
5e2ac7e5fd
llvm6: enable BPF target here as well
2019-01-13 21:30:24 -06:00
Jan Tojnar
ff22d90308
mesa_noglu: fix build
...
LLVM’s `LLVM_TARGETS_TO_BUILD` build flag defauls to `all`, which contains
`AMDGPU` among others. [1] Changes in llvm [2] switched to explicitly listing
host and target platforms, excluding the AMDGPU target, which is required
for Mesa to build.
[1]: db50b6fe39/CMakeLists.txt (L286-L302)
[2]: https://github.com/NixOS/nixpkgs/pull/52031
2018-12-24 23:41:36 +01:00
Jan Tojnar
ef935fa101
Merge branch 'master' into staging
2018-12-24 15:02:29 +01:00
Jörg Thalheim
1b146a8c6f
treewide: remove paxutils from stdenv
...
More then one year ago we removed grsecurity kernels from nixpkgs:
https://github.com/NixOS/nixpkgs/pull/25277
This removes now also paxutils from stdenv.
2018-12-22 12:55:05 +01:00
James Kay
72e1764199
libcxx: add linker scripts for libc++.a to ensure libc++abi.a is properly linked
2018-12-17 18:59:19 +00:00
James Kay
d8699a9a5b
libcxxabi: also install libc++abi.a
2018-12-17 12:22:29 +00:00
Matthew Bauer
adcf4aa524
lldb: use provided INSTALL_NAME_DIR
...
Fixes #47886
We don’t want llvm to set the install name for us. It should be the
one given to us.
2018-12-15 13:27:02 -06:00
Matthew Bauer
1d6b0eb7dd
lldb: add cf-private on darwin
...
This is necessary to avoid objc errors like:
"_OBJC_CLASS_$_NSDictionary", referenced from:
objc-class-ref in liblldbHost.a(HostInfoMacOSX.mm.o)
objc-class-ref in liblldbPluginPlatformMacOSX.a(PlatformiOSSimulatorCoreSimulatorSupport.mm.o)
ld: symbol(s) not found for architecture x86_64
2018-12-15 13:27:01 -06:00
Jörg Thalheim
fd463810ae
llvm_6: fix cross-compilation
2018-12-14 09:40:48 +00:00
John Ericson
2b4b7d4ef3
Merge pull request #47233 from oxij/tree/mass-rebuild-noop-cleanups
...
treewide: mass rebuild noop cleanups
2018-09-25 00:04:52 -04:00
Will Dietz
167e799d81
llvm*: http -> https, prefer releases.llvm.org
2018-09-23 13:30:18 -05:00
Jan Malakhovski
ed10043f75
llvmPackages_6.libcxx: cleanup with a mass rebuild
2018-09-23 17:30:32 +00:00
Matthew Bauer
b32d0a41d0
llvm: fix triple setting
...
llvm is a library so it should just need to know about build & host.
GCC will already have a cross compiler built.
/cc @Ericson2314 @dtzWill
2018-08-02 17:04:47 -04:00
Matthew Bauer
f3fc04bfd2
llvm6: disable tests on cross compiler
...
This seems to be broken currently.
https://hydra.nixos.org/build/77597880/nixlog/1
/cc @ericson2314 @dtzWill
2018-07-31 21:46:07 -04:00
Lluís Batlle i Rossell
f54b387b63
Merge remote-tracking branch 'central/master' into viric_clean
2018-07-28 19:25:14 +02:00
Daiderd Jordan
3ec81ae27e
llvm-packages: fix manpages with python-boot and cleanup
...
On darwin llvmPackages is built using python-boot to avoid dependencies
in the stdenv, but we can't and shouldn't use that when building the
manpages since it depends on python packages.
2018-07-28 00:08:26 +02:00
Lluís Batlle i Rossell
66d7126255
Take me (viric) out of most maintenance
...
Since years I'm not maintaining anything of the list below other
than some updates when I needed them for some reason. Other people
is doing that maintenance on my behalf so I better take me out but
for very few packages. Finally!
2018-07-22 21:50:19 +02:00
volth
52f53c69ce
pkgs/*: remove unreferenced function arguments
2018-07-21 02:48:04 +00:00
Will Dietz
bf3a588f64
llvm_6: enable "dump()" methods even w/assertions off
2018-07-05 07:22:53 -05:00
Will Dietz
8cd268adf0
llvm_6: refresh sanitizers-non-gnu patch
2018-06-29 11:54:21 -05:00
Will Dietz
4a8104af49
llvm6: 6.0.0 -> 6.0.1
2018-06-29 11:54:21 -05:00
Will Dietz
7088489223
llvm-{5,6}: unconditionally set triples
...
Previously we only set these when using musl.
See https://github.com/NixOS/nixpkgs/pull/42452#discussion_r197618464
Same should be done for changes in #42452 ,
I'll add a follow-up commit doing so in the PR containing this
or wherever makes sense-- depending on how review/merging of that goes.
Sending similar changes for LLVM 4 to master, as suggested.
2018-06-23 14:06:55 -05:00
John Ericson
fc9644d4c9
llvm 6: Fix libcxxabi impurity and darwin sanitizers
2018-06-14 19:19:54 -04:00
John Ericson
1eacf21bd4
darwin bootstrapping: Avoid overriding aliases for LLVM
...
Respect the fix points and aliases by overriding originals.
2018-06-14 15:05:18 -04:00
John Ericson
7156f46949
llvm 3.8+: Remove unneeded libcxxabi dependency
...
Evidentally this hasn't been needed for a while
2018-06-13 21:06:00 -04:00
Benjamin Saunders
b0d0b1adfe
clang_6: fix sanitizers under libstdc++
2018-05-24 15:04:30 -07:00
John Ericson
205fc55ea2
Merge remote-tracking branch 'upstream/staging' into compiler-rt
2018-05-24 02:58:00 -04:00
Benjamin Saunders
46eeef1898
tests.cc-wrapper: verify building with sanitizers
2018-05-24 02:57:44 -04:00
Benjamin Saunders
16da44b5c1
llvm and clang 6: factor out compiler-rt, fix libstdcxxStdenv sanitizer headers
...
Build compiler-rt separate from llvm and clang, and just add as an extra
library in the wrapper.
2018-05-24 02:57:43 -04:00
John Ericson
e5175fbf20
Merge remote-tracking branch 'upstream/master' into ios-mini-staging
2018-05-23 16:01:05 -04:00
John Ericson
d7144e708b
Merge remote-tracking branch 'upstream/master' into staging
2018-05-23 16:00:04 -04:00
John Ericson
58fd684c76
llvm: Separate tools and libraries for clarity
...
Especially provides clarity with respect to cross.
2018-05-23 14:42:06 -04:00
Matthew Bauer
9416f29800
llvm: remove libedit from clang
...
clang should never need libedit. From what I understand this is only
needed by LLDB.
https://github.com/llvm-mirror/clang/search?q=libedit
(cherry picked from commit 9ee69c27c9
)
2018-05-23 11:09:12 -04:00
Matthew Bauer
d417ada9a6
clang: only link if LLVMgold exists
...
buildEnv now errors with broken symlinks. Lots of things like this
still exist.
Discussion in #39038 .
(cherry picked from commit 7b73c7f49a
)
2018-05-23 11:09:05 -04:00
John Ericson
c641a74bd6
Merge remote-tracking branch 'upstream/master' into ios-mini-staging
2018-05-23 09:45:25 -04:00
John Ericson
18742471af
Merge remote-tracking branch 'upstream/master' into staging
...
Use newer vagrant from master
2018-05-23 09:40:37 -04:00
John Ericson
acc9843691
llvm: Starting to fix Clang wrapping and stdenv building for cross
2018-05-23 00:42:47 -04:00
John Ericson
25e866a7fe
treewide: Less {cc,bintools}-wrapper eta expansion
...
Also makes the LLVM ones more correct
2018-05-23 00:27:30 -04:00
John Ericson
4f7cdd35d5
Merge pull request #40139 from obsidiansystems/modular-setup-hooks
...
treewide: Modular setup hooks
2018-05-07 15:32:10 -04:00
John Ericson
2110c0bd30
treewide: Use pkgs/build-support/roles.bash to remove copy pasta
...
Also fix some setup hooks that unnecessarily used environment hooks,
which revolted in the same variable being modified too many times.
2018-05-07 15:10:37 -04:00
John Ericson
88d18d2e04
Merge pull request #39947 from obsidiansystems/libcxx-cross
...
lib{std,}c++: Fix setup hooks for cross
2018-05-03 18:20:13 -04:00