[pkg-d-commits] [ldc] 09/14: Fix FindLLVM for LLVM 4.0
Matthias Klumpp
mak at moszumanska.debian.org
Sun Apr 23 22:35:55 UTC 2017
This is an automated email from the git hooks/post-receive script.
mak pushed a commit to annotated tag v0.17.2
in repository ldc.
commit 53210583af486f06d1a75ab65df5eaea92289fa2
Author: Johan Engelen <jbc.engelen at gmail.com>
Date: Tue Jul 19 17:47:59 2016 +0200
Fix FindLLVM for LLVM 4.0
(cherry picked from commit cc2f7c81215e609cde3a544e488ed1ea35d55862)
---
cmake/Modules/FindLLVM.cmake | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/cmake/Modules/FindLLVM.cmake b/cmake/Modules/FindLLVM.cmake
index 8fedce7..82bd09f 100644
--- a/cmake/Modules/FindLLVM.cmake
+++ b/cmake/Modules/FindLLVM.cmake
@@ -84,6 +84,10 @@ if ((WIN32 AND NOT(MINGW OR CYGWIN)) OR NOT LLVM_CONFIG)
# Versions beginning with 3.8 do not support component ipa
list(REMOVE_ITEM LLVM_FIND_COMPONENTS "ipa" index)
endif()
+ if(${LLVM_VERSION_STRING} MATCHES "^4\\.[\\.0-9A-Za-z]*")
+ # Versions beginning with 4. do not support component ipa
+ list(REMOVE_ITEM LLVM_FIND_COMPONENTS "ipa" index)
+ endif()
if(${LLVM_VERSION_STRING} MATCHES "^3\\.[0-4][\\.0-9A-Za-z]*")
llvm_map_components_to_libraries(tmplibs ${LLVM_FIND_COMPONENTS})
@@ -164,6 +168,10 @@ else()
# Versions beginning with 3.8 do not support component ipa
list(REMOVE_ITEM LLVM_FIND_COMPONENTS "ipa" index)
endif()
+ if(${LLVM_VERSION_STRING} MATCHES "^4\\.[\\.0-9A-Za-z]*")
+ # Versions beginning with 4. do not support component ipa
+ list(REMOVE_ITEM LLVM_FIND_COMPONENTS "ipa" index)
+ endif()
llvm_set(LDFLAGS ldflags)
if(NOT ${LLVM_VERSION_STRING} MATCHES "^3\\.[0-4][\\.0-9A-Za-z]*")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git
More information about the pkg-d-commits
mailing list