Skip to content

Commit a0932fa

Browse files
authored
Add /bigobj compile option to MSVC build (microsoft#7228)
When targeting arm64 Debug, this error is detected: `libclang\dxcrewriteunused.cpp(1,1): error C1128: number of sections exceeded object file format limit: compile with /bigobj` This PR adds a compile option for the folder that contains dxcrewriteunused.cpp, so that the limit on the number of sections is increased, and compilation may succeed.
1 parent b2bcf21 commit a0932fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/clang/tools/libclang/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ if(MSVC)
119119
# Each functions is exported as "dllexport" in include/clang-c.
120120
# KB835326
121121
set(LLVM_EXPORTED_SYMBOL_FILE)
122+
add_compile_options(/bigobj)
122123
endif()
123124

124125
# HLSL Change Starts

0 commit comments

Comments
 (0)