Skip to content

Commit ff0a18b

Browse files
authored
Add /bigobj compile option to MSVC build (#7228) (#7229)
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. Cherry picked from #7228
1 parent f2f02c5 commit ff0a18b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)