Closed ylme closed 3 months ago
更新 update bgfx 这个提交后,VS 编译不过了。 我在本地和 github action 的报错一致。
[1/447] Compile C++ build/msvc/debug/obj/bx/commandline.obj FAILED: build/msvc/debug/obj/bx/commandline.obj cl /nologo /showIncludes -c 3rd/bx/src/commandline.cpp /Fobuild/msvc/debug/obj/bx/commandline.obj /EHsc /Zc:__cplusplus /Od /W3 /permissive- /MDd /FS /Zi /Fdbuild/msvc/debug/obj/bx/ /I./3rd/bx/include/compat/msvc /I3rd/bx/include /I3rd/bx/3rdparty /D_CRT_SECURE_NO_WARNINGS /D_WIN32_WINNT=0x0602 /DBGFX_CONFIG_DEBUG_UNIFORM=0 /DBGFX_CONFIG_ENCODER_API_ONLY=1 /DBX_CONFIG_DEBUG=1 /D_CRT_SECURE_NO_WARNINGS /D__STDC_FORMAT_MACROS /utf-8 /arch:AVX2 /std:c++20 d:\work\engine\ant\3rd\bx\include\bx\platform.h(462): fatal error C1189: #error: "When using MSVC you must set /Zc:preprocessor compiler option." [2/447] Compile C++ build/msvc/debug/obj/bx/timer.obj FAILED: build/msvc/debug/obj/bx/timer.obj cl /nologo /showIncludes -c 3rd/bx/src/timer.cpp /Fobuild/msvc/debug/obj/bx/timer.obj /EHsc /Zc:__cplusplus /Od /W3 /permissive- /MDd /FS /Zi /Fdbuild/msvc/debug/obj/bx/ /I./3rd/bx/include/compat/msvc /I3rd/bx/include /I3rd/bx/3rdparty /D_CRT_SECURE_NO_WARNINGS /D_WIN32_WINNT=0x0602 /DBGFX_CONFIG_DEBUG_UNIFORM=0 /DBGFX_CONFIG_ENCODER_API_ONLY=1 /DBX_CONFIG_DEBUG=1 /D_CRT_SECURE_NO_WARNINGS /D__STDC_FORMAT_MACROS /utf-8 /arch:AVX2 /std:c++20 d:\work\engine\ant\3rd\bx\include\bx\platform.h(462): fatal error C1189: #error: "When using MSVC you must set /Zc:preprocessor compiler option."
刚才我更新了一下编译脚本,现在应该修好了?
Fixed
更新 update bgfx 这个提交后,VS 编译不过了。 我在本地和 github action 的报错一致。