diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-02-11 12:53:50 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-02-11 13:07:27 +0100 |
commit | 64f076a7aa3f7387f827d898481d8fff856bd370 (patch) | |
tree | 7c4dbd263364d155cd0fd815019133d6eaae94fe /sys-devel | |
parent | twisted-r1.eclass: Replace TEST_DIR eqawarn with fatal error (diff) | |
download | gentoo-64f076a7aa3f7387f827d898481d8fff856bd370.tar.gz gentoo-64f076a7aa3f7387f827d898481d8fff856bd370.tar.bz2 gentoo-64f076a7aa3f7387f827d898481d8fff856bd370.zip |
sys-devel/llvm: Remove CMAKE_BUILD_TYPE hack from llvm-config in 4.0+
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/llvm/files/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sys-devel/llvm/files/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch b/sys-devel/llvm/files/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch index 32213040a8a5..5def55d38fcc 100644 --- a/sys-devel/llvm/files/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch +++ b/sys-devel/llvm/files/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch @@ -6,18 +6,12 @@ Subject: [PATCH] llvm-config: Clean up exported values, update for shared Gentoo-specific fixup for llvm-config, including: - wiping build-specific CFLAGS, CXXFLAGS, -- updating library suffixes for shared libs, -- making --src-root return invalid path (/dev/null), -- making --build-mode return "Release" rather than "Gentoo". +- making --src-root return invalid path (/dev/null). Thanks to Steven Newbury for the initial patch. Bug: https://bugs.gentoo.org/565358 Bug: https://bugs.gentoo.org/501684 ---- - tools/llvm-config/CMakeLists.txt | 11 ++++++++--- - tools/llvm-config/llvm-config.cpp | 9 +++++++-- - 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/tools/llvm-config/CMakeLists.txt b/tools/llvm-config/CMakeLists.txt index 744fa4e44d1..593788aaef3 100644 @@ -42,16 +36,6 @@ diff --git a/tools/llvm-config/llvm-config.cpp b/tools/llvm-config/llvm-config.c index d780094861c..c61c72ff48c 100644 --- a/tools/llvm-config/llvm-config.cpp +++ b/tools/llvm-config/llvm-config.cpp -@@ -531,7 +531,8 @@ int main(int argc, char **argv) { - } else if (Arg == "--host-target") { - OS << Triple::normalize(LLVM_DEFAULT_TARGET_TRIPLE) << '\n'; - } else if (Arg == "--build-mode") { -- OS << build_mode << '\n'; -+ // force Release since we force non-standard Gentoo build mode -+ OS << "Release" << '\n'; - } else if (Arg == "--assertion-mode") { - #if defined(NDEBUG) - OS << "OFF\n"; @@ -549,7 +550,11 @@ int main(int argc, char **argv) { } else if (Arg == "--obj-root") { OS << ActivePrefix << '\n'; |