diff options
author | Cristian Adam <cristian.adam@qt.io> | 2023-02-08 20:54:11 +0100 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2023-04-19 14:59:53 +0200 |
commit | 317a7897e9598f61be023eeac9575eb7355e95a1 (patch) | |
tree | 6920a34d9aa3cd90a5012a328640136391a19357 | |
parent | b212c4b5d1f8380107ffb80c2fa5af6c379fd19a (diff) |
clang: allow build on Windows with Visual C++release_16.0.2-based
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 <eike.ziller@qt.io>
-rw-r--r-- | clang/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt index 090cfa352078..51e471bbbeb0 100644 --- a/clang/CMakeLists.txt +++ b/clang/CMakeLists.txt @@ -411,7 +411,7 @@ CMAKE_DEPENDENT_OPTION(CLANG_PLUGIN_SUPPORT # If libstdc++ is statically linked, clang-repl needs to statically link libstdc++ # itself, which is not possible in many platforms because of current limitations in # JIT stack. (more platforms need to be supported by JITLink) -if(NOT LLVM_STATIC_LINK_CXX_STDLIB) +if(NOT LLVM_STATIC_LINK_CXX_STDLIB AND NOT DEFINED HAVE_CLANG_REPL_SUPPORT) set(HAVE_CLANG_REPL_SUPPORT ON) endif() |