2022-03-13 16:22:32 +01:00
|
|
|
$NetBSD: patch-CMakeLists.txt,v 1.3 2022/03/13 15:22:32 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.
|
2022-03-13 16:22:32 +01:00
|
|
|
Don't build locstats.
|
2016-03-08 22:06:50 +01:00
|
|
|
|
2022-03-13 16:22:32 +01:00
|
|
|
--- CMakeLists.txt.orig 2021-06-28 16:23:38.000000000 +0000
|
2016-03-08 22:06:50 +01:00
|
|
|
+++ CMakeLists.txt
|
2022-03-13 16:22:32 +01:00
|
|
|
@@ -902,7 +902,7 @@ endif()
|
2019-01-26 22:17:20 +01:00
|
|
|
|
|
|
|
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,
|
2022-03-13 16:22:32 +01:00
|
|
|
@@ -1027,7 +1027,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"
|
2022-03-13 16:22:32 +01:00
|
|
|
@@ -1038,7 +1038,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"
|
2022-03-13 16:22:32 +01:00
|
|
|
@@ -1125,5 +1125,5 @@ if (LLVM_INCLUDE_BENCHMARKS)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (LLVM_INCLUDE_UTILS AND LLVM_INCLUDE_TOOLS)
|
|
|
|
- add_subdirectory(utils/llvm-locstats)
|
|
|
|
+# add_subdirectory(utils/llvm-locstats)
|
|
|
|
endif()
|