mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-14 13:55:54 +00:00
Merge branch '7' of salsa.debian.org:pkg-llvm-team/llvm-toolchain into 7
This commit is contained in:
commit
358a561958
9
debian/changelog
vendored
9
debian/changelog
vendored
@ -17,6 +17,15 @@ llvm-toolchain-7 (1:7.1.0~svn352582-1~exp1) UNRELEASED; urgency=medium
|
|||||||
|
|
||||||
-- Sylvestre Ledru <sylvestre@debian.org> Wed, 30 Jan 2019 08:53:14 +0100
|
-- Sylvestre Ledru <sylvestre@debian.org> Wed, 30 Jan 2019 08:53:14 +0100
|
||||||
|
|
||||||
|
llvm-toolchain-7 (1:7.0.1-7) unstable; urgency=medium
|
||||||
|
|
||||||
|
* kfreebsd/kfreebsd-triple-clang.diff: update of the patch to fix
|
||||||
|
the kfreebsd FTBFS (Closes: #921246)
|
||||||
|
* Enable ld gold for kfreebsd-amd64 and kfreebsd-i386
|
||||||
|
Many thanks to Svante Signell for the two updates
|
||||||
|
|
||||||
|
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 07 Feb 2019 17:17:40 +0100
|
||||||
|
|
||||||
llvm-toolchain-7 (1:7.0.1-6) unstable; urgency=medium
|
llvm-toolchain-7 (1:7.0.1-6) unstable; urgency=medium
|
||||||
|
|
||||||
* Add support for kfreebsd (Closes: #921246)
|
* Add support for kfreebsd (Closes: #921246)
|
||||||
|
8
debian/patches/fix-llvm-config.diff
vendored
8
debian/patches/fix-llvm-config.diff
vendored
@ -1,7 +1,7 @@
|
|||||||
Index: llvm-toolchain-7_7.0.1~svn352582/tools/llvm-config/CMakeLists.txt
|
Index: llvm-toolchain-7-7.0.1/tools/llvm-config/CMakeLists.txt
|
||||||
===================================================================
|
===================================================================
|
||||||
--- llvm-toolchain-7_7.0.1~svn352582.orig/tools/llvm-config/CMakeLists.txt
|
--- llvm-toolchain-7-7.0.1.orig/tools/llvm-config/CMakeLists.txt
|
||||||
+++ llvm-toolchain-7_7.0.1~svn352582/tools/llvm-config/CMakeLists.txt
|
+++ llvm-toolchain-7-7.0.1/tools/llvm-config/CMakeLists.txt
|
||||||
@@ -32,9 +32,9 @@ get_property(COMPILE_FLAGS TARGET llvm-c
|
@@ -32,9 +32,9 @@ get_property(COMPILE_FLAGS TARGET llvm-c
|
||||||
# Use configure_file to create BuildVariables.inc.
|
# Use configure_file to create BuildVariables.inc.
|
||||||
set(LLVM_SRC_ROOT ${LLVM_MAIN_SRC_DIR})
|
set(LLVM_SRC_ROOT ${LLVM_MAIN_SRC_DIR})
|
||||||
@ -14,4 +14,4 @@ Index: llvm-toolchain-7_7.0.1~svn352582/tools/llvm-config/CMakeLists.txt
|
|||||||
+set(LLVM_CXXFLAGS "${COMPILE_FLAGS} ${LLVM_DEFINITIONS}")
|
+set(LLVM_CXXFLAGS "${COMPILE_FLAGS} ${LLVM_DEFINITIONS}")
|
||||||
set(LLVM_BUILD_SYSTEM cmake)
|
set(LLVM_BUILD_SYSTEM cmake)
|
||||||
set(LLVM_HAS_RTTI ${LLVM_CONFIG_HAS_RTTI})
|
set(LLVM_HAS_RTTI ${LLVM_CONFIG_HAS_RTTI})
|
||||||
set(LLVM_DYLIB_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}${LLVM_VERSION_SUFFIX}")
|
set(LLVM_DYLIB_VERSION "${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX}")
|
||||||
|
@ -49,7 +49,25 @@ Index: llvm-toolchain-7-7.0.1/clang/lib/Driver/ToolChains/Gnu.cpp
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- llvm-toolchain-7-7.0.1.orig/clang/lib/Driver/ToolChains/Gnu.cpp
|
--- llvm-toolchain-7-7.0.1.orig/clang/lib/Driver/ToolChains/Gnu.cpp
|
||||||
+++ llvm-toolchain-7-7.0.1/clang/lib/Driver/ToolChains/Gnu.cpp
|
+++ llvm-toolchain-7-7.0.1/clang/lib/Driver/ToolChains/Gnu.cpp
|
||||||
@@ -499,6 +499,18 @@ void tools::gnutools::Linker::ConstructJ
|
@@ -234,6 +234,8 @@ static const char *getLDMOption(const ll
|
||||||
|
case llvm::Triple::x86:
|
||||||
|
if (T.isOSIAMCU())
|
||||||
|
return "elf_iamcu";
|
||||||
|
+ if (T.isOSkFreeBSD())
|
||||||
|
+ return "elf_i386_fbsd";
|
||||||
|
return "elf_i386";
|
||||||
|
case llvm::Triple::aarch64:
|
||||||
|
return "aarch64linux";
|
||||||
|
@@ -277,6 +279,8 @@ static const char *getLDMOption(const ll
|
||||||
|
case llvm::Triple::x86_64:
|
||||||
|
if (T.getEnvironment() == llvm::Triple::GNUX32)
|
||||||
|
return "elf32_x86_64";
|
||||||
|
+ if (T.isOSkFreeBSD())
|
||||||
|
+ return "elf_x86_64_fbsd";
|
||||||
|
return "elf_x86_64";
|
||||||
|
default:
|
||||||
|
return nullptr;
|
||||||
|
@@ -499,6 +503,18 @@ void tools::gnutools::Linker::ConstructJ
|
||||||
CmdArgs.push_back("--wrap=pthread_create");
|
CmdArgs.push_back("--wrap=pthread_create");
|
||||||
|
|
||||||
CmdArgs.push_back("-lc");
|
CmdArgs.push_back("-lc");
|
||||||
@ -68,7 +86,7 @@ Index: llvm-toolchain-7-7.0.1/clang/lib/Driver/ToolChains/Gnu.cpp
|
|||||||
|
|
||||||
// Add IAMCU specific libs, if needed.
|
// Add IAMCU specific libs, if needed.
|
||||||
if (IsIAMCU)
|
if (IsIAMCU)
|
||||||
@@ -1836,7 +1848,8 @@ void Generic_GCC::GCCInstallationDetecto
|
@@ -1836,7 +1852,8 @@ void Generic_GCC::GCCInstallationDetecto
|
||||||
"x86_64-redhat-linux", "x86_64-suse-linux",
|
"x86_64-redhat-linux", "x86_64-suse-linux",
|
||||||
"x86_64-manbo-linux-gnu", "x86_64-linux-gnu",
|
"x86_64-manbo-linux-gnu", "x86_64-linux-gnu",
|
||||||
"x86_64-slackware-linux", "x86_64-unknown-linux",
|
"x86_64-slackware-linux", "x86_64-unknown-linux",
|
||||||
@ -78,7 +96,7 @@ Index: llvm-toolchain-7-7.0.1/clang/lib/Driver/ToolChains/Gnu.cpp
|
|||||||
static const char *const X32LibDirs[] = {"/libx32", "/lib"};
|
static const char *const X32LibDirs[] = {"/libx32", "/lib"};
|
||||||
static const char *const X32Triples[] = {
|
static const char *const X32Triples[] = {
|
||||||
"x86_64-linux-gnux32", "x86_64-unknown-linux-gnux32",
|
"x86_64-linux-gnux32", "x86_64-unknown-linux-gnux32",
|
||||||
@@ -1847,8 +1860,9 @@ void Generic_GCC::GCCInstallationDetecto
|
@@ -1847,8 +1864,9 @@ void Generic_GCC::GCCInstallationDetecto
|
||||||
"i386-linux-gnu", "i386-redhat-linux6E", "i686-redhat-linux",
|
"i386-linux-gnu", "i386-redhat-linux6E", "i686-redhat-linux",
|
||||||
"i586-redhat-linux", "i386-redhat-linux", "i586-suse-linux",
|
"i586-redhat-linux", "i386-redhat-linux", "i586-suse-linux",
|
||||||
"i486-slackware-linux", "i686-montavista-linux", "i586-linux-gnu",
|
"i486-slackware-linux", "i686-montavista-linux", "i586-linux-gnu",
|
||||||
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -150,7 +150,6 @@ kfreebsd/kfreebsd-openmp.diff
|
|||||||
kfreebsd/kfreebsd-threads-build.diff
|
kfreebsd/kfreebsd-threads-build.diff
|
||||||
kfreebsd/kfreebsd-triple-clang.diff
|
kfreebsd/kfreebsd-triple-clang.diff
|
||||||
kfreebsd/kfreebsd-triple.diff
|
kfreebsd/kfreebsd-triple.diff
|
||||||
kfreebsd/liblldb-7.install.kfreebsd
|
|
||||||
kfreebsd/lib_Support.diff
|
kfreebsd/lib_Support.diff
|
||||||
kfreebsd/lib_Target_X86.diff
|
kfreebsd/lib_Target_X86.diff
|
||||||
kfreebsd/lldb_source_Host_freebsd_Host.cpp.diff
|
kfreebsd/lldb_source_Host_freebsd_Host.cpp.diff
|
||||||
|
2
debian/rules
vendored
2
debian/rules
vendored
@ -113,7 +113,7 @@ endif
|
|||||||
# CMAKE_EXTRA += -DLLVM_ENABLE_LLD=ON
|
# CMAKE_EXTRA += -DLLVM_ENABLE_LLD=ON
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
BINUTILS_GOLD_ARCHS := amd64 arm64 armhf i386 ppc64 ppc64el x32 s390x hurd-i386
|
BINUTILS_GOLD_ARCHS := amd64 arm64 armhf i386 ppc64 ppc64el x32 s390x hurd-i386 kfreebsd-amd64 kfreebsd-i386
|
||||||
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' binutils) ge 2.23.1-1~exp3 ; echo $$?),0)
|
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' binutils) ge 2.23.1-1~exp3 ; echo $$?),0)
|
||||||
ifneq (,$(filter $(DEB_HOST_ARCH),$(BINUTILS_GOLD_ARCHS)))
|
ifneq (,$(filter $(DEB_HOST_ARCH),$(BINUTILS_GOLD_ARCHS)))
|
||||||
# -fused-ld=gold enables the gold linker (but is not supported by all archs / distro)
|
# -fused-ld=gold enables the gold linker (but is not supported by all archs / distro)
|
||||||
|
Loading…
Reference in New Issue
Block a user