diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-04-15 20:38:53 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-04-26 22:38:53 +0100 |
commit | d279dbea98f5cc50fcf678741da1aac9d88dc0b9 (patch) | |
tree | 67c79cd2b2548692d12cb39357d005b425f3cdf7 | |
parent | eef582d3ce685214849aaa5a15898c3367554f3e (diff) |
clang: Add patch to detect aarch64-unknown-linux triple.
Without this, clang fails to find the crtbegin.o and gcc runtime libs on aarch64.
Filed patch on this upstream bug:
https://llvm.org/bugs/show_bug.cgi?id=27379
-rw-r--r-- | clang-detect-aarch64-gcc.patch | 11 | ||||
-rw-r--r-- | org.freedesktop.Sdk.json | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/clang-detect-aarch64-gcc.patch b/clang-detect-aarch64-gcc.patch new file mode 100644 index 0000000..18e7247 --- /dev/null +++ b/clang-detect-aarch64-gcc.patch @@ -0,0 +1,11 @@ +--- clang-1/lib/Driver/ToolChains.cpp 2016-04-15 20:36:37.825903494 +0100 ++++ /home/tristan/clang-copy/lib/Driver/ToolChains.cpp 2016-04-15 20:34:02.980104915 +0100 +@@ -1418,7 +1418,7 @@ bool Generic_GCC::GCCInstallationDetecto + static const char *const AArch64LibDirs[] = {"/lib64", "/lib"}; + static const char *const AArch64Triples[] = { + "aarch64-none-linux-gnu", "aarch64-linux-gnu", "aarch64-linux-android", +- "aarch64-redhat-linux"}; ++ "aarch64-redhat-linux", "aarch64-unknown-linux"}; + static const char *const AArch64beLibDirs[] = {"/lib"}; + static const char *const AArch64beTriples[] = {"aarch64_be-none-linux-gnu", + "aarch64_be-linux-gnu"}; diff --git a/org.freedesktop.Sdk.json b/org.freedesktop.Sdk.json index 7a2abf4..837cfa0 100644 --- a/org.freedesktop.Sdk.json +++ b/org.freedesktop.Sdk.json @@ -912,6 +912,10 @@ "type": "archive", "url": "http://llvm.org/releases/3.8.0/cfe-3.8.0.src.tar.xz", "sha256": "04149236de03cf05232d68eb7cb9c50f03062e339b68f4f8a03b650a11536cf9" + }, + { + "type": "patch", + "path": "clang-detect-aarch64-gcc.patch" } ] }, |