diff options
-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() |