X-Git-Url: https://git.tld-linux.org/?p=packages%2Fllvm.git;a=blobdiff_plain;f=cmake-buildtype.patch;fp=cmake-buildtype.patch;h=e0d7410ed0971d495260495dd1ad3bcc8170330d;hp=5dbe193facee8a9c07bbf9902e708b0210a85a20;hb=9a942b15771786b61f66fd6011b30beab8f4eb8f;hpb=a9f5c8b2c627e29019650a6d45bb0abeeedad1d1 diff --git a/cmake-buildtype.patch b/cmake-buildtype.patch index 5dbe193..e0d7410 100644 --- a/cmake-buildtype.patch +++ b/cmake-buildtype.patch @@ -1,8 +1,7 @@ -allow CMAKE_BUILD_TYPE=PLD - ---- llvm-3.8.0.src/CMakeLists.txt~ 2016-01-13 21:03:44.000000000 +0200 -+++ llvm-3.8.0.src/CMakeLists.txt 2016-10-01 15:54:42.749630541 +0300 -@@ -174,11 +174,6 @@ +diff -urNp -x '*.orig' llvm-11.0.1.src.org/CMakeLists.txt llvm-11.0.1.src/CMakeLists.txt +--- llvm-11.0.1.src.org/CMakeLists.txt 2021-03-25 22:28:14.616795886 +0100 ++++ llvm-11.0.1.src/CMakeLists.txt 2021-03-25 22:28:19.786759915 +0100 +@@ -264,11 +264,6 @@ endif() string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE) @@ -11,6 +10,6 @@ allow CMAKE_BUILD_TYPE=PLD - message(FATAL_ERROR "Invalid value for CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}") -endif() - - set(LLVM_LIBDIR_SUFFIX "" CACHE STRING "Define suffix of library directory name (32/64)" ) - - # They are used as destination of target generators. + # LLVM_INSTALL_PACKAGE_DIR needs to be declared prior to adding the tools + # subdirectory in order to have the value available for llvm-config. + include(GNUInstallPackageDir)