File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -910,9 +910,9 @@ if (LLVM_COMPILER_IS_GCC_COMPATIBLE AND NOT LLVM_ENABLE_WARNINGS)
910910 append ("-w" CMAKE_C_FLAGS CMAKE_CXX_FLAGS )
911911endif ()
912912
913- # Enable '-index-store-path' on a Debug build, if the compiler supports it and for non-IDE generators .
914- option (LLVM_DISABLE_INDEX_STORE "Disable '-index-store-path' flag" Off )
915- if (NOT LLVM_DISABLE_INDEX_STORE AND NOT XCODE AND NOT MSVC_IDE AND uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG" )
913+ # Allow enabling '-index-store-path' for non-IDE generators if the compiler supports it.
914+ option (LLVM_ENABLE_INDEX_STORE "Enable '-index-store-path' flag" Off )
915+ if (LLVM_ENABLE_INDEX_STORE AND NOT XCODE AND NOT MSVC_IDE )
916916 set (INDEX_DATA_STORE_PATH "${PROJECT_BINARY_DIR} /IndexStore" CACHE STRING "Index store path" )
917917
918918 check_c_compiler_flag("-Werror -index-store-path \" ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY} /CMakeTmp/IndexStore\" " "C_SUPPORTS_INDEX_STORE" )
You can’t perform that action at this time.
0 commit comments