Skip to content

Commit a7c24e3

Browse files
committed
Limit to VS builds so other MSVC builds can still use "__SHORT_FILE__" define
1 parent 061cfbd commit a7c24e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/cmake/modules/LLVMProcessSources.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ function(llvm_process_sources OUT_VAR)
5858
set(sources ${ARG_UNPARSED_ARGUMENTS})
5959
llvm_check_source_file_list(${sources})
6060

61-
# Don't generate __SHORT_FILE__ on MSVC builds as it can force repeated cache regeneration.
62-
if(NOT MSVC)
61+
# Don't generate __SHORT_FILE__ on VS builds as it can prevent build parallelisation.
62+
if(NOT CMAKE_GENERATOR MATCHES "Visual Studio")
6363
foreach(fn ${sources})
6464
get_filename_component(suf ${fn} EXT)
6565
if("${suf}" STREQUAL ".cpp" OR "${suf}" STREQUAL ".c")

0 commit comments

Comments
 (0)