2019-01-26 22:17:20 +01:00
|
|
|
$NetBSD: patch-CMakeLists.txt,v 1.2 2019/01/26 21:17:20 tnn Exp $
|
2016-03-08 22:06:50 +01:00
|
|
|
|
|
|
|
Put headers in subdirectory to avoid conflict with clang.
|
2019-01-26 22:17:20 +01:00
|
|
|
Don't implement sys/regset.h workaround, fix source instead.
|
2016-03-08 22:06:50 +01:00
|
|
|
|
2019-01-26 22:17:20 +01:00
|
|
|
--- CMakeLists.txt.orig 2018-11-02 17:47:32.000000000 +0000
|
2016-03-08 22:06:50 +01:00
|
|
|
+++ CMakeLists.txt
|
2019-01-26 22:17:20 +01:00
|
|
|
@@ -830,7 +830,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "(Fre
|
|
|
|
|
|
|
|
if( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
|
|
|
|
# special hack for Solaris to handle crazy system sys/regset.h
|
|
|
|
- include_directories("${LLVM_MAIN_INCLUDE_DIR}/llvm/Support/Solaris")
|
|
|
|
+ #include_directories("${LLVM_MAIN_INCLUDE_DIR}/llvm/Support/Solaris")
|
|
|
|
endif( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
|
|
|
|
|
|
|
|
# Make sure we don't get -rdynamic in every binary. For those that need it,
|
|
|
|
@@ -966,7 +966,7 @@ endif()
|
2016-03-08 22:06:50 +01:00
|
|
|
|
|
|
|
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
|
|
|
install(DIRECTORY include/llvm include/llvm-c
|
|
|
|
- DESTINATION include
|
|
|
|
+ DESTINATION include/libLLVM
|
|
|
|
COMPONENT llvm-headers
|
|
|
|
FILES_MATCHING
|
|
|
|
PATTERN "*.def"
|
2019-01-26 22:17:20 +01:00
|
|
|
@@ -978,7 +978,7 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
2016-03-08 22:06:50 +01:00
|
|
|
)
|
|
|
|
|
2019-01-26 22:17:20 +01:00
|
|
|
install(DIRECTORY ${LLVM_INCLUDE_DIR}/llvm ${LLVM_INCLUDE_DIR}/llvm-c
|
2016-03-08 22:06:50 +01:00
|
|
|
- DESTINATION include
|
|
|
|
+ DESTINATION include/libLLVM
|
|
|
|
COMPONENT llvm-headers
|
|
|
|
FILES_MATCHING
|
|
|
|
PATTERN "*.def"
|