Skip to content

Commit 9da819c

Browse files
committed
[CMAKE] Document MSVC LLVM include handling
Clarify why the LLVM header target uses include directories instead of GCC-style -isystem options on MSVC.
1 parent 7d3242d commit 9da819c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cmake/modules/LLVM.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ if(NOT ${USE_LLVM} MATCHES ${IS_FALSE_PATTERN})
3636
add_definitions(${LLVM_DEFINITIONS})
3737
add_library(tvm_llvm_header INTERFACE)
3838
if(MSVC)
39+
# MSVC treats the operand after -isystem as a source file.
3940
target_include_directories(tvm_llvm_header SYSTEM INTERFACE ${LLVM_INCLUDE_DIRS})
4041
target_compile_options(tvm_llvm_header INTERFACE ${LLVM_DEFINITIONS})
4142
else()

0 commit comments

Comments
 (0)