dffb85bee2
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.
10 lines
518 B
Diff
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 &&
|