Skip to content

Commit 1eee682

Browse files
committed
clang: allow build on Windows with Visual C++
The CMake code will set HAVE_CLANG_REPL_SUPPORT to ON and the Visual C++ compiler will complain at linking a release build of clang-repl.exe due to the number of symbols bigger than 65k. This patchset allows setting HAVE_CLANG_REPL_SUPPORT to OFF and build fine. Change-Id: I10665ef13c7dfffb5e23c05475ac5f10de48b8ee Reviewed-by: Eike Ziller <[email protected]>
1 parent 20e6985 commit 1eee682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ CMAKE_DEPENDENT_OPTION(CLANG_PLUGIN_SUPPORT
402402
# If libstdc++ is statically linked, clang-repl needs to statically link libstdc++
403403
# itself, which is not possible in many platforms because of current limitations in
404404
# JIT stack. (more platforms need to be supported by JITLink)
405-
if(NOT LLVM_STATIC_LINK_CXX_STDLIB)
405+
if(NOT LLVM_STATIC_LINK_CXX_STDLIB AND NOT DEFINED HAVE_CLANG_REPL_SUPPORT)
406406
set(HAVE_CLANG_REPL_SUPPORT ON)
407407
endif()
408408

0 commit comments

Comments
 (0)