Skip to content

Commit 48857bf

Browse files
committed
[TSAR, CMake] Apply patch to LLVM to build it on OS Windows.
1 parent 68ee3a2 commit 48857bf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ endif()
6161
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${BCL_CMAKE_MODULE_PATH})
6262

6363
# Minimum LLVM version which is necessary to build TSAR.
64-
set(LLVM_MIN_VERSION 11.0)
64+
set(LLVM_MIN_VERSION 15.0)
6565

6666
include(CMakeDependentOption)
6767
include(BCLCompilerOptions)
@@ -205,6 +205,11 @@ else()
205205
FOLDER Misc
206206
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/${TSAR_LIBRARY_PATH}")
207207
endif()
208+
if (MSVC)
209+
include(BCLPatch)
210+
bcl_patch(PATCHFILE ${PROJECT_SOURCE_DIR}/patches/llvm-${LLVM_VERSION_MAJOR}.patch
211+
TARGET ${LLVM_PROJECT_DIR} "" IGNORE "" PATCH_OPTIONS -p0)
212+
endif()
208213
sapfor_install_llvm()
209214
endif(PACKAGE_LLVM)
210215

0 commit comments

Comments
 (0)