Do some bullshit magic with build.bat

This commit is contained in:
Joshalosh 2023-09-23 22:14:38 +10:00
parent 7ed151edd1
commit 5de62f1b15

View File

@ -82,9 +82,9 @@ set clang_dll_cmd=clang-cl %dll_compile_flags% /Fotely_dll_clang /Fetely_dll_c
REM MSVC build =====================================================================================
if not exist "%build_dir%\feely_pona_sprite_packer" (
set msvc_sprite_packer_cmd=cl %common_compile_flags% %code_dir%\feely_pona_sprite_packer.cpp /Fofeely_pona_sprite_packer /Fefeely_pona_sprite_packer %common_link_flags%
call powershell -Command "$duration = Measure-Command {%msvc_sprite_packer_cmd% | Out-Default}; Write-Host 'msvc (sprite packer):' $duration.TotalSeconds 'seconds'"
set msvc_sprite_packer_cmd=cl %common_compile_flags% %code_dir%\feely_pona_sprite_packer.cpp /Fofeely_pona_sprite_packer /Fefeely_pona_sprite_packer %common_link_flags%
if not exist "%build_dir%\feely_pona_sprite_packer.exe" (
powershell -Command "$duration = Measure-Command {%msvc_sprite_packer_cmd% | Out-Default}; Write-Host 'msvc (sprite packer):' $duration.TotalSeconds 'seconds'"
)
set msvc_build_platform=$platform_time = Measure-Command {%msvc_cmd% ^| Out-Default};