diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-08-23 22:31:19 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-08-23 22:32:17 +0200 |
commit | 7ac0203c113cd880e7a6bc249206e9b006860f95 (patch) | |
tree | e7e423adc9cd5a98f24c6ef967499afeee4df8b1 /sys-devel | |
parent | sys-devel/llvm: OCaml doc patch has been applied upstream (diff) | |
download | gentoo-7ac0203c113cd880e7a6bc249206e9b006860f95.tar.gz gentoo-7ac0203c113cd880e7a6bc249206e9b006860f95.tar.bz2 gentoo-7ac0203c113cd880e7a6bc249206e9b006860f95.zip |
sys-devel/clang: rlimits check patch has been applied upstream
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/clang/clang-9999.ebuild | 2 | ||||
-rw-r--r-- | sys-devel/clang/files/9999/0003-driver-Support-checking-for-rlimits-via-cmake-when-b.patch | 84 |
2 files changed, 0 insertions, 86 deletions
diff --git a/sys-devel/clang/clang-9999.ebuild b/sys-devel/clang/clang-9999.ebuild index ad0fcf330b52..5d965090b067 100644 --- a/sys-devel/clang/clang-9999.ebuild +++ b/sys-devel/clang/clang-9999.ebuild @@ -90,8 +90,6 @@ src_prepare() { # automatically select active system GCC's libraries, bugs #406163 and #417913 # TODO: cross-linux tests broken by this one eapply "${FILESDIR}"/9999/0002-driver-Support-obtaining-active-toolchain-from-gcc-c.patch - # use cmake checks for rlimits, rather than __has_include_next() - eapply "${FILESDIR}"/9999/0003-driver-Support-checking-for-rlimits-via-cmake-when-b.patch # adjust llvm-lit search to match LLVM cmake macros eapply "${FILESDIR}"/9999/0004-cmake-Adjust-llvm-lit-search-to-match-the-one-in-LLV.patch # support overriding clang runtime install directory diff --git a/sys-devel/clang/files/9999/0003-driver-Support-checking-for-rlimits-via-cmake-when-b.patch b/sys-devel/clang/files/9999/0003-driver-Support-checking-for-rlimits-via-cmake-when-b.patch deleted file mode 100644 index 16d63ec7f61c..000000000000 --- a/sys-devel/clang/files/9999/0003-driver-Support-checking-for-rlimits-via-cmake-when-b.patch +++ /dev/null @@ -1,84 +0,0 @@ -From 27b65490c9764d18fa02274bbb4f75dd5a688506 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> -Date: Sun, 21 Aug 2016 23:30:17 +0200 -Subject: [PATCH 3/7] driver: Support checking for rlimits via cmake (when - bootstrapping) - -Add a cmake check for sys/resource.h and replace the __has_include() -check with its result, in order to make it possible to use rlimits when -building with compilers not supporting __has_include() -- i.e. when -bootstrapping. - -Patch: https://reviews.llvm.org/D23744 ---- - CMakeLists.txt | 3 +++ - include/clang/Config/config.h.cmake | 3 +++ - tools/driver/cc1_main.cpp | 8 +++----- - 3 files changed, 9 insertions(+), 5 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index e6dde85..aee0d0a 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -177,6 +177,9 @@ if (LIBXML2_FOUND) - set(CLANG_HAVE_LIBXML 1) - endif() - -+include(CheckIncludeFile) -+check_include_file(sys/resource.h CLANG_HAVE_RLIMITS) -+ - set(CLANG_RESOURCE_DIR "" CACHE STRING - "Relative directory from the Clang binary to its resource files.") - -diff --git a/include/clang/Config/config.h.cmake b/include/clang/Config/config.h.cmake -index 9200ed9..9bf9ea5 100644 ---- a/include/clang/Config/config.h.cmake -+++ b/include/clang/Config/config.h.cmake -@@ -35,6 +35,9 @@ - /* Define if we have libxml2 */ - #cmakedefine CLANG_HAVE_LIBXML ${CLANG_HAVE_LIBXML} - -+/* Define if we have sys/resource.h (rlimits) */ -+#cmakedefine CLANG_HAVE_RLIMITS ${CLANG_HAVE_RLIMITS} -+ - /* The LLVM product name and version */ - #define BACKEND_PACKAGE_STRING "${BACKEND_PACKAGE_STRING}" - -diff --git a/tools/driver/cc1_main.cpp b/tools/driver/cc1_main.cpp -index b8cea41..45d44a0 100644 ---- a/tools/driver/cc1_main.cpp -+++ b/tools/driver/cc1_main.cpp -@@ -15,6 +15,7 @@ - - #include "llvm/Option/Arg.h" - #include "clang/CodeGen/ObjectFilePCHContainerOperations.h" -+#include "clang/Config/config.h" - #include "clang/Driver/DriverDiagnostic.h" - #include "clang/Driver/Options.h" - #include "clang/Frontend/CompilerInstance.h" -@@ -37,12 +38,9 @@ - #include "llvm/Support/raw_ostream.h" - #include <cstdio> - --#ifdef __has_include --#if __has_include(<sys/resource.h>) --#define HAVE_RLIMITS -+#ifdef CLANG_HAVE_RLIMITS - #include <sys/resource.h> - #endif --#endif - - using namespace clang; - using namespace llvm::opt; -@@ -73,7 +71,7 @@ void initializePollyPasses(llvm::PassRegistry &Registry); - } - #endif - --#ifdef HAVE_RLIMITS -+#ifdef CLANG_HAVE_RLIMITS - // The amount of stack we think is "sufficient". If less than this much is - // available, we may be unable to reach our template instantiation depth - // limit and other similar limits. --- -2.9.3 - |