File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 curl.exe --location --create-dirs -oC:\TEMP\DXSDK_Aug08.exe https://archive.org/download/dxsdk_aug08/DXSDK_Aug08.exe
2727 7z.exe x C:\TEMP\DXSDK_Aug08.exe -aoa -oC:\Tools\DXSDK_Aug08 DXSDK/Include DXSDK/Lib
2828
29- - name : Setup MSVC Developer Command Prompt
30- uses : TheMrMilchmann/setup-msvc-dev@v3.0.0
31- with :
32- arch : x86
33-
3429 - name : Build
30+ shell : cmd
3531 run : |
32+ call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
3633 cmake -B build -GNinja -DLLVM_WIDBERG="C:\Tools\llvm-widberg" -DDXSDK_DIR=C:\Tools\DXSDK_Aug08\DXSDK
3734 cmake --build build
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # Generate compile_commands.json for clang
2323set (CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF ) # Disable LTO
2424cmake_policy (SET CMP0091 NEW ) # Enable MSVC runtime library selection
2525set (CMAKE_MSVC_RUNTIME_LIBRARY "" ) # Manually set runtime library to avoid warning
26- add_compile_options ("/MT$<$<CONFIG :Debug >:d >" "$<$<COMPILE_LANGUAGE :CXX >:/GR >" "/GS-" "/clang:-msse" "/clang:-msse2" "/clang:- ffast-math" "/clang:-fno-finite-math-only" ) # Use static runtime libraries
26+ add_compile_options ("/MT$<$<CONFIG :Debug >:d >" "$<$<COMPILE_LANGUAGE :CXX >:/GR >" "/GS-" "/clang:-ffast-math" "/clang:-fno-finite-math-only" ) # Use static runtime libraries
2727add_link_options ("/MANIFEST:NO" ) # Disable manifest generation
2828add_compile_definitions ("_CRT_SECURE_NO_DEPRECATE" "_CRT_SECURE_NO_WARNINGS" "_WINSOCK_DEPRECATED_NO_WARNINGS" ) # Disable CRT/Winsock warnings
2929
You can’t perform that action at this time.
0 commit comments