Skip to content

Commit 9e6471b

Browse files
committed
add "/Z7" for cpp-tests on windows
1 parent 06a9fcb commit 9e6471b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/cpp-tests/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,8 @@ if(APPLE)
473473
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
474474
endif()
475475
elseif(WINDOWS)
476+
# "too large PDB" error often occurs in cpp-tests when using default "/Zi"
477+
target_compile_options(${APP_NAME} PRIVATE /Z7)
476478
cocos_copy_target_dll(${APP_NAME} COPY_TO ${APP_RES_DIR}/..)
477479
endif()
478480

0 commit comments

Comments
 (0)