void-packages/srcpkgs/llvm/files/patches/cfe/cfe-007-musl-use-init-array.patch
Christian Neukirchen dffb85bee2 llvm: update to 3.8.0.
Use cmake to build.  This is the favored method of building by upstream.

Consequences:
- Build lld again
- Build LLVMgold
- Enable sanitizers on non-musl platforms
- Remove llvm-doc (not built by cmake, quite useless)
- Use versioned binary names
- Could use ninja with make_cmd=ninja and configure -Gninja, but we
  stick to make for now.

Also cleaned up and fixed remaining patches.
2016-03-10 16:53:09 +01:00

10 lines
518 B
Diff

--- cfe-3.8.0.src/lib/Driver/ToolChains.cpp.orig
+++ cfe-3.8.0.src/lib/Driver/ToolChains.cpp
@@ -2428,6 +2428,7 @@
ArgStringList &CC1Args) const {
const Generic_GCC::GCCVersion &V = GCCInstallation.getVersion();
bool UseInitArrayDefault =
+ getTriple().getEnvironment() == llvm::Triple::Musl ||
getTriple().getArch() == llvm::Triple::aarch64 ||
getTriple().getArch() == llvm::Triple::aarch64_be ||
(getTriple().getOS() == llvm::Triple::Linux &&