Skip to content

Commit 24a5141

Browse files
committed
Try not using dev command prompt
1 parent ed28663 commit 24a5141

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,9 @@ jobs:
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

‎CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # Generate compile_commands.json for clang
2323
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF) # Disable LTO
2424
cmake_policy(SET CMP0091 NEW) # Enable MSVC runtime library selection
2525
set(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
2727
add_link_options("/MANIFEST:NO") # Disable manifest generation
2828
add_compile_definitions("_CRT_SECURE_NO_DEPRECATE" "_CRT_SECURE_NO_WARNINGS" "_WINSOCK_DEPRECATED_NO_WARNINGS") # Disable CRT/Winsock warnings
2929

0 commit comments

Comments
 (0)