-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Khem Raj <[email protected]>
- Loading branch information
Showing
41 changed files
with
356 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From ec5bd3bfc9f682c90ceba06f2d76aa5234a9c846 Mon Sep 17 00:00:00 2001 | ||
From dfbcc9f4f8142d690623197f6d9c1489e1fbe950 Mon Sep 17 00:00:00 2001 | ||
From: Khem Raj <[email protected]> | ||
Date: Sun, 27 Aug 2017 10:37:49 -0700 | ||
Subject: [PATCH] libcxxabi: Find libunwind headers when | ||
|
@@ -14,14 +14,14 @@ LIBCXXABI_LIBUNWIND_INCLUDES if its there in environment | |
Upstream-Status: Pending | ||
Signed-off-by: Khem Raj <[email protected]> | ||
--- | ||
libcxxabi/CMakeLists.txt | 16 +++++++++++----- | ||
1 file changed, 11 insertions(+), 5 deletions(-) | ||
libcxxabi/CMakeLists.txt | 15 ++++++++++----- | ||
1 file changed, 10 insertions(+), 5 deletions(-) | ||
|
||
diff --git a/libcxxabi/CMakeLists.txt b/libcxxabi/CMakeLists.txt | ||
index da998d2221dc..936b78e4d6dd 100644 | ||
index 43400c6e8d9a..cc0841112c0c 100644 | ||
--- a/libcxxabi/CMakeLists.txt | ||
+++ b/libcxxabi/CMakeLists.txt | ||
@@ -422,7 +422,7 @@ set(LIBCXXABI_LIBUNWIND_PATH "${LIBCXXABI_LIBUNWIND_PATH}" CACHE PATH | ||
@@ -423,7 +423,7 @@ set(LIBCXXABI_LIBUNWIND_PATH "${LIBCXXABI_LIBUNWIND_PATH}" CACHE PATH | ||
"Specify path to libunwind source." FORCE) | ||
|
||
if (LIBCXXABI_USE_LLVM_UNWINDER OR LLVM_NATIVE_ARCH MATCHES ARM) | ||
|
@@ -30,7 +30,7 @@ index da998d2221dc..936b78e4d6dd 100644 | |
PATHS ${LIBCXXABI_LIBUNWIND_INCLUDES} | ||
${LIBCXXABI_LIBUNWIND_PATH}/include | ||
${CMAKE_BINARY_DIR}/${LIBCXXABI_LIBUNWIND_INCLUDES} | ||
@@ -433,15 +433,21 @@ if (LIBCXXABI_USE_LLVM_UNWINDER OR LLVM_NATIVE_ARCH MATCHES ARM) | ||
@@ -434,18 +434,23 @@ if (LIBCXXABI_USE_LLVM_UNWINDER OR LLVM_NATIVE_ARCH MATCHES ARM) | ||
NO_CMAKE_FIND_ROOT_PATH | ||
) | ||
|
||
|
@@ -47,11 +47,13 @@ index da998d2221dc..936b78e4d6dd 100644 | |
+ include_directories("${LIBCXXABI_LIBUNWIND_INCLUDES}") | ||
endif() | ||
|
||
add_custom_target(cxxabi-test-depends | ||
COMMENT "Build dependencies required to run the libc++abi test suite.") | ||
|
||
+set(LIBCXXABI_LIBUNWIND_INCLUDES "${LIBCXXABI_LIBUNWIND_INCLUDES}" CACHE PATH | ||
+ "Specify path to libunwind includes." FORCE) | ||
+set(LIBCXXABI_LIBUNWIND_PATH "${LIBCXXABI_LIBUNWIND_PATH}" CACHE PATH | ||
+ "Specify path to libunwind source." FORCE) | ||
+ | ||
+ | ||
# Add source code. This also contains all of the logic for deciding linker flags | ||
# soname, etc... | ||
|
2 changes: 1 addition & 1 deletion
2
recipes-devtools/clang/clang/0002-compiler-rt-support-a-new-embedded-linux-target.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From ac1643e6e68697e6ee374535dd98413c92224076 Mon Sep 17 00:00:00 2001 | ||
From d8ae9427a1c03a97936b8ae1c5ecdddf76aa28f3 Mon Sep 17 00:00:00 2001 | ||
From: Khem Raj <[email protected]> | ||
Date: Sun, 19 Apr 2015 15:16:23 -0700 | ||
Subject: [PATCH] compiler-rt: support a new embedded linux target | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 3d969ae73698da3518f3230f9e40cb7bd6f2e6c3 Mon Sep 17 00:00:00 2001 | ||
From 9db3ee14d6a268b2383119ea2100d01fdc98032d Mon Sep 17 00:00:00 2001 | ||
From: Khem Raj <[email protected]> | ||
Date: Thu, 19 May 2016 23:11:45 -0700 | ||
Subject: [PATCH] compiler-rt: Simplify cross-compilation. Don't use | ||
|
@@ -21,10 +21,10 @@ Signed-off-by: Khem Raj <[email protected]> | |
1 file changed, 10 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt | ||
index bbb4e8d7c333..583e5630b03c 100644 | ||
index 65063e0057bb..5bd51fb40d63 100644 | ||
--- a/compiler-rt/CMakeLists.txt | ||
+++ b/compiler-rt/CMakeLists.txt | ||
@@ -82,7 +82,16 @@ if (COMPILER_RT_STANDALONE_BUILD) | ||
@@ -86,7 +86,16 @@ if (COMPILER_RT_STANDALONE_BUILD) | ||
set(CMAKE_CXX_EXTENSIONS NO) | ||
|
||
if (NOT LLVM_RUNTIMES_BUILD) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From df831369b91c38565d73b56d452186eff0a63dd4 Mon Sep 17 00:00:00 2001 | ||
From 0353686259421fab37ecd8861f9fa7645aab26da Mon Sep 17 00:00:00 2001 | ||
From: Khem Raj <[email protected]> | ||
Date: Sat, 21 May 2016 00:33:20 +0000 | ||
Subject: [PATCH] llvm: TargetLibraryInfo: Undefine libc functions if they are | ||
|
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <[email protected]> | |
1 file changed, 21 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/llvm/include/llvm/Analysis/TargetLibraryInfo.def b/llvm/include/llvm/Analysis/TargetLibraryInfo.def | ||
index 6bd922eed89e..9e15466f963a 100644 | ||
index 623cdb4b6e0b..18bb48beb702 100644 | ||
--- a/llvm/include/llvm/Analysis/TargetLibraryInfo.def | ||
+++ b/llvm/include/llvm/Analysis/TargetLibraryInfo.def | ||
@@ -1348,6 +1348,9 @@ TLI_DEFINE_STRING_INTERNAL("fopen") | ||
@@ -1368,6 +1368,9 @@ TLI_DEFINE_STRING_INTERNAL("fopen") | ||
TLI_DEFINE_SIG_INTERNAL(Ptr, Ptr, Ptr) | ||
|
||
/// FILE *fopen64(const char *filename, const char *opentype) | ||
|
@@ -27,7 +27,7 @@ index 6bd922eed89e..9e15466f963a 100644 | |
TLI_DEFINE_ENUM_INTERNAL(fopen64) | ||
TLI_DEFINE_STRING_INTERNAL("fopen64") | ||
TLI_DEFINE_SIG_INTERNAL(Ptr, Ptr, Ptr) | ||
@@ -1426,7 +1429,9 @@ TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Long, Int) | ||
@@ -1446,7 +1449,9 @@ TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Long, Int) | ||
TLI_DEFINE_ENUM_INTERNAL(fseeko) | ||
TLI_DEFINE_STRING_INTERNAL("fseeko") | ||
TLI_DEFINE_SIG_INTERNAL(Int, Ptr, IntX, Int) | ||
|
@@ -38,7 +38,7 @@ index 6bd922eed89e..9e15466f963a 100644 | |
/// int fseeko64(FILE *stream, off64_t offset, int whence) | ||
TLI_DEFINE_ENUM_INTERNAL(fseeko64) | ||
TLI_DEFINE_STRING_INTERNAL("fseeko64") | ||
@@ -1443,6 +1448,9 @@ TLI_DEFINE_STRING_INTERNAL("fstat") | ||
@@ -1463,6 +1468,9 @@ TLI_DEFINE_STRING_INTERNAL("fstat") | ||
TLI_DEFINE_SIG_INTERNAL(Int, Int, Ptr) | ||
|
||
/// int fstat64(int filedes, struct stat64 *buf) | ||
|
@@ -48,7 +48,7 @@ index 6bd922eed89e..9e15466f963a 100644 | |
TLI_DEFINE_ENUM_INTERNAL(fstat64) | ||
TLI_DEFINE_STRING_INTERNAL("fstat64") | ||
TLI_DEFINE_SIG_INTERNAL(Int, Int, Ptr) | ||
@@ -1468,6 +1476,9 @@ TLI_DEFINE_STRING_INTERNAL("ftello") | ||
@@ -1488,6 +1496,9 @@ TLI_DEFINE_STRING_INTERNAL("ftello") | ||
TLI_DEFINE_SIG_INTERNAL(IntPlus, Ptr) | ||
|
||
/// off64_t ftello64(FILE *stream) | ||
|
@@ -58,7 +58,7 @@ index 6bd922eed89e..9e15466f963a 100644 | |
TLI_DEFINE_ENUM_INTERNAL(ftello64) | ||
TLI_DEFINE_STRING_INTERNAL("ftello64") | ||
TLI_DEFINE_SIG_INTERNAL(Int64, Ptr) | ||
@@ -1678,6 +1689,9 @@ TLI_DEFINE_STRING_INTERNAL("lstat") | ||
@@ -1698,6 +1709,9 @@ TLI_DEFINE_STRING_INTERNAL("lstat") | ||
TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) | ||
|
||
/// int lstat64(const char *path, struct stat64 *buf); | ||
|
@@ -68,7 +68,7 @@ index 6bd922eed89e..9e15466f963a 100644 | |
TLI_DEFINE_ENUM_INTERNAL(lstat64) | ||
TLI_DEFINE_STRING_INTERNAL("lstat64") | ||
TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) | ||
@@ -2090,6 +2104,9 @@ TLI_DEFINE_STRING_INTERNAL("stat") | ||
@@ -2125,6 +2139,9 @@ TLI_DEFINE_STRING_INTERNAL("stat") | ||
TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) | ||
|
||
/// int stat64(const char *path, struct stat64 *buf); | ||
|
@@ -78,7 +78,7 @@ index 6bd922eed89e..9e15466f963a 100644 | |
TLI_DEFINE_ENUM_INTERNAL(stat64) | ||
TLI_DEFINE_STRING_INTERNAL("stat64") | ||
TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) | ||
@@ -2315,6 +2332,9 @@ TLI_DEFINE_STRING_INTERNAL("tmpfile") | ||
@@ -2350,6 +2367,9 @@ TLI_DEFINE_STRING_INTERNAL("tmpfile") | ||
TLI_DEFINE_SIG_INTERNAL(Ptr) | ||
|
||
/// FILE *tmpfile64(void) | ||
|
2 changes: 1 addition & 1 deletion
2
recipes-devtools/clang/clang/0005-llvm-allow-env-override-of-exe-and-libdir-path.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From a160c086ee25bb5db31bc497e910c3615681e948 Mon Sep 17 00:00:00 2001 | ||
From 5fc3f082f8d70487574d765dadf99f1a6f85b4f0 Mon Sep 17 00:00:00 2001 | ||
From: Martin Kelly <[email protected]> | ||
Date: Fri, 19 May 2017 00:22:57 -0700 | ||
Subject: [PATCH] llvm: allow env override of exe and libdir path | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From af511db3b78d27f21af09877c1c188b1c0c2ce0a Mon Sep 17 00:00:00 2001 | ||
From 1caf52876cb5e8426cffe8c3da988fa67782ad5c Mon Sep 17 00:00:00 2001 | ||
From: Dan McGregor <[email protected]> | ||
Date: Wed, 26 Apr 2017 20:29:41 -0600 | ||
Subject: [PATCH] clang: driver: Check sysroot for ldso path | ||
|
@@ -15,10 +15,10 @@ Signed-off-by: Khem Raj <[email protected]> | |
1 file changed, 21 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | ||
index 4300a2bdff17..fe1bea2bde9d 100644 | ||
index 2265138edbff..4067f7560140 100644 | ||
--- a/clang/lib/Driver/ToolChains/Linux.cpp | ||
+++ b/clang/lib/Driver/ToolChains/Linux.cpp | ||
@@ -499,7 +499,11 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | ||
@@ -510,7 +510,11 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | ||
Triple.getEnvironment() == llvm::Triple::GNUEABIHF || | ||
tools::arm::getARMFloatABI(*this, Args) == tools::arm::FloatABI::Hard; | ||
|
||
|
@@ -31,7 +31,7 @@ index 4300a2bdff17..fe1bea2bde9d 100644 | |
Loader = HF ? "ld-linux-armhf.so.3" : "ld-linux.so.3"; | ||
break; | ||
} | ||
@@ -554,11 +558,19 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | ||
@@ -565,11 +569,19 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | ||
LibDir = "lib64"; | ||
Loader = | ||
(tools::ppc::hasPPCAbiArg(Args, "elfv2")) ? "ld64.so.2" : "ld64.so.1"; | ||
|
@@ -49,9 +49,9 @@ index 4300a2bdff17..fe1bea2bde9d 100644 | |
+ LibDir = "lib"; | ||
+ } | ||
break; | ||
case llvm::Triple::riscv32: { | ||
StringRef ABIName = tools::riscv::getRISCVABI(Args, Triple); | ||
@@ -580,6 +592,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | ||
case llvm::Triple::riscv32: | ||
case llvm::Triple::riscv64: { | ||
@@ -587,6 +599,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | ||
case llvm::Triple::sparcv9: | ||
LibDir = "lib64"; | ||
Loader = "ld-linux.so.2"; | ||
|
@@ -62,7 +62,7 @@ index 4300a2bdff17..fe1bea2bde9d 100644 | |
break; | ||
case llvm::Triple::systemz: | ||
LibDir = "lib"; | ||
@@ -594,6 +610,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | ||
@@ -601,6 +617,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | ||
|
||
LibDir = X32 ? "libx32" : "lib64"; | ||
Loader = X32 ? "ld-linux-x32.so.2" : "ld-linux-x86-64.so.2"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From a842a494f82f68c92a562aa40e6861f792d5b703 Mon Sep 17 00:00:00 2001 | ||
From 96d379cf52fad6943c46da6c72fa1ccc1369ea7b Mon Sep 17 00:00:00 2001 | ||
From: Khem Raj <[email protected]> | ||
Date: Thu, 19 May 2016 21:11:06 -0700 | ||
Subject: [PATCH] clang: Driver/tools.cpp: Add -lssp_nonshared on musl | ||
|
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <[email protected]> | |
1 file changed, 6 insertions(+) | ||
|
||
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp | ||
index e5e1b1d77269..7b43cde6b884 100644 | ||
index 52c2ee90b1b2..de9872033e6a 100644 | ||
--- a/clang/lib/Driver/ToolChains/Gnu.cpp | ||
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp | ||
@@ -628,6 +628,12 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA, | ||
@@ -632,6 +632,12 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA, | ||
if (IsIAMCU) | ||
CmdArgs.push_back("-lgloss"); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 53b47e96f7c69bea46d16489dd6887561245c23f Mon Sep 17 00:00:00 2001 | ||
From 11cf0972180faddbfb4226ad5f14a6b398bef293 Mon Sep 17 00:00:00 2001 | ||
From: Khem Raj <[email protected]> | ||
Date: Thu, 16 Mar 2017 09:02:13 -0700 | ||
Subject: [PATCH] clang: Prepend trailing '/' to sysroot | ||
|
@@ -25,10 +25,10 @@ Signed-off-by: Khem Raj <[email protected]> | |
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | ||
index fe1bea2bde9d..9cfc135ed2c0 100644 | ||
index 4067f7560140..d4b26fc986d9 100644 | ||
--- a/clang/lib/Driver/ToolChains/Linux.cpp | ||
+++ b/clang/lib/Driver/ToolChains/Linux.cpp | ||
@@ -219,7 +219,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) | ||
@@ -222,7 +222,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) | ||
Multilibs = GCCInstallation.getMultilibs(); | ||
SelectedMultilibs.assign({GCCInstallation.getMultilib()}); | ||
llvm::Triple::ArchType Arch = Triple.getArch(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From fd99d9521a7f9ce8c8de7c05a9636efa5a5c34e2 Mon Sep 17 00:00:00 2001 | ||
From aa992e8870aa27ead07c042c44784a5b985b7301 Mon Sep 17 00:00:00 2001 | ||
From: Khem Raj <[email protected]> | ||
Date: Thu, 16 Mar 2017 19:06:26 -0700 | ||
Subject: [PATCH] clang: Look inside the target sysroot for compiler runtime | ||
|
@@ -16,7 +16,7 @@ Signed-off-by: Khem Raj <[email protected]> | |
1 file changed, 5 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp | ||
index 388030592b48..c59700b4a7ab 100644 | ||
index 20a555afb809..e6d285795337 100644 | ||
--- a/clang/lib/Driver/ToolChain.cpp | ||
+++ b/clang/lib/Driver/ToolChain.cpp | ||
@@ -15,6 +15,7 @@ | ||
|
@@ -27,7 +27,7 @@ index 388030592b48..c59700b4a7ab 100644 | |
#include "clang/Config/config.h" | ||
#include "clang/Driver/Action.h" | ||
#include "clang/Driver/Driver.h" | ||
@@ -595,7 +596,10 @@ StringRef ToolChain::getOSLibName() const { | ||
@@ -619,7 +620,10 @@ StringRef ToolChain::getOSLibName() const { | ||
} | ||
|
||
std::string ToolChain::getCompilerRTPath() const { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From a310e5638205777893228a1c0853bd5494e7d02c Mon Sep 17 00:00:00 2001 | ||
From 6fb55124e241589d204d0091f890472d993bc40d Mon Sep 17 00:00:00 2001 | ||
From: Khem Raj <[email protected]> | ||
Date: Sat, 20 Mar 2021 16:09:16 -0700 | ||
Subject: [PATCH] clang: Define / releative gcc installation dir | ||
|
@@ -15,10 +15,10 @@ Signed-off-by: Khem Raj <[email protected]> | |
1 file changed, 7 insertions(+), 7 deletions(-) | ||
|
||
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp | ||
index 7b43cde6b884..1ea6927d06f3 100644 | ||
index de9872033e6a..f478a02d62bd 100644 | ||
--- a/clang/lib/Driver/ToolChains/Gnu.cpp | ||
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp | ||
@@ -2913,19 +2913,19 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( | ||
@@ -2915,19 +2915,19 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( | ||
// Whether this library suffix is relevant for the triple. | ||
bool Active; | ||
} Suffixes[] = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From bc21d17ff434af5efdb2fac86392862230c6f9e6 Mon Sep 17 00:00:00 2001 | ||
From 29438e005e81ae8e548f32ae35a3c9e334f13d3a Mon Sep 17 00:00:00 2001 | ||
From: Khem Raj <[email protected]> | ||
Date: Wed, 31 Jul 2019 22:51:39 -0700 | ||
Subject: [PATCH] clang: Add -lpthread and -ldl along with -lunwind for static | ||
|
@@ -21,10 +21,10 @@ Signed-off-by: Khem Raj <[email protected]> | |
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp | ||
index 2b916f000336..de823347a527 100644 | ||
index 019df16a909f..00d608c0c095 100644 | ||
--- a/clang/lib/Driver/ToolChains/CommonArgs.cpp | ||
+++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp | ||
@@ -2179,6 +2179,8 @@ static void AddUnwindLibrary(const ToolChain &TC, const Driver &D, | ||
@@ -2183,6 +2183,8 @@ static void AddUnwindLibrary(const ToolChain &TC, const Driver &D, | ||
CmdArgs.push_back("-lunwind"); | ||
} else if (LGT == LibGccType::StaticLibGcc) { | ||
CmdArgs.push_back("-l:libunwind.a"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From a48c97d8a0f5eee9729cad03eac5be677c9963e8 Mon Sep 17 00:00:00 2001 | ||
From bc9acc5b2200e172181c140d13c5ecb526f4ef34 Mon Sep 17 00:00:00 2001 | ||
From: Anuj Mittal <[email protected]> | ||
Date: Thu, 26 Dec 2019 12:56:16 -0800 | ||
Subject: [PATCH] Pass PYTHON_EXECUTABLE when cross compiling for native build | ||
|
@@ -11,10 +11,10 @@ Signed-off-by: Khem Raj <[email protected]> | |
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/llvm/cmake/modules/CrossCompile.cmake b/llvm/cmake/modules/CrossCompile.cmake | ||
index 55bf3be75642..71b09ec05b68 100644 | ||
index 39b4abaa0d93..a47afde7f85d 100644 | ||
--- a/llvm/cmake/modules/CrossCompile.cmake | ||
+++ b/llvm/cmake/modules/CrossCompile.cmake | ||
@@ -90,6 +90,7 @@ function(llvm_create_cross_target project_name target_name toolchain buildtype) | ||
@@ -92,6 +92,7 @@ function(llvm_create_cross_target project_name target_name toolchain buildtype) | ||
-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN="${LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN}" | ||
-DLLVM_INCLUDE_BENCHMARKS=OFF | ||
-DLLVM_INCLUDE_TESTS=OFF | ||
|
2 changes: 1 addition & 1 deletion
2
recipes-devtools/clang/clang/0013-Check-for-atomic-double-intrinsics.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 4e96e75d77d0d59399f0b8ad7aa0555e39e7b5cc Mon Sep 17 00:00:00 2001 | ||
From 253b287574ca4e4178e29fbb161efdd293c187a2 Mon Sep 17 00:00:00 2001 | ||
From: Khem Raj <[email protected]> | ||
Date: Mon, 18 Nov 2019 17:00:29 -0800 | ||
Subject: [PATCH] Check for atomic<double> intrinsics | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From c0a66d4f358b24bf3acd89910e0f7fc780d16a11 Mon Sep 17 00:00:00 2001 | ||
From b8c6e337830fc79fe1abad4000c4f01beb2c3938 Mon Sep 17 00:00:00 2001 | ||
From: Jeremy Puhlman <[email protected]> | ||
Date: Thu, 16 Jan 2020 21:16:10 +0000 | ||
Subject: [PATCH] libcxx: Add compiler runtime library to link step for libcxx | ||
|
@@ -14,22 +14,22 @@ Signed-off-by: Khem Raj <[email protected]> | |
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/libcxx/src/CMakeLists.txt b/libcxx/src/CMakeLists.txt | ||
index 1b80625304a4..fe706c9e920f 100644 | ||
index 0dfc9647558d..08ddad95a42e 100644 | ||
--- a/libcxx/src/CMakeLists.txt | ||
+++ b/libcxx/src/CMakeLists.txt | ||
@@ -198,7 +198,7 @@ if (LIBCXX_ENABLE_SHARED) | ||
@@ -200,7 +200,7 @@ if (LIBCXX_ENABLE_SHARED) | ||
add_library(cxx_shared SHARED ${exclude_from_all} ${LIBCXX_SOURCES} ${LIBCXX_HEADERS}) | ||
target_include_directories(cxx_shared PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) | ||
target_link_libraries(cxx_shared PUBLIC cxx-headers | ||
target_link_libraries(cxx_shared PUBLIC cxx-headers libcxx-libc-shared | ||
- PRIVATE ${LIBCXX_LIBRARIES}) | ||
+ PRIVATE ${LIBCXX_LIBRARIES} "$$($$CC --print-libgcc-file-name)") | ||
set_target_properties(cxx_shared | ||
PROPERTIES | ||
COMPILE_FLAGS "${LIBCXX_COMPILE_FLAGS}" | ||
@@ -291,7 +291,7 @@ if (LIBCXX_ENABLE_STATIC) | ||
@@ -293,7 +293,7 @@ if (LIBCXX_ENABLE_STATIC) | ||
add_library(cxx_static STATIC ${exclude_from_all} ${LIBCXX_SOURCES} ${LIBCXX_HEADERS}) | ||
target_include_directories(cxx_static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) | ||
target_link_libraries(cxx_static PUBLIC cxx-headers | ||
target_link_libraries(cxx_static PUBLIC cxx-headers libcxx-libc-static | ||
- PRIVATE ${LIBCXX_LIBRARIES} | ||
+ PRIVATE ${LIBCXX_LIBRARIES} "$$($$CC --print-libgcc-file-name)" | ||
PRIVATE libcxx-abi-static) | ||
|
Oops, something went wrong.