Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,15 @@ jobs:
exit /b 1
)

REM Map architecture for cross-compilation (host_target)
REM GitHub Actions windows-latest runners are x64, so we need x64_<target> for cross-compilation
set "TARGET_ARCH=${{ matrix.arch }}"
set "VCVARS_ARCH=%TARGET_ARCH%"
if "%TARGET_ARCH%"=="x86" set "VCVARS_ARCH=x64_x86"
if "%TARGET_ARCH%"=="arm64" set "VCVARS_ARCH=x64_arm64"

REM Initialize environment for the target architecture
call "%VS_PATH%\VC\Auxiliary\Build\vcvarsall.bat" ${{ matrix.arch }}
call "%VS_PATH%\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_ARCH%

set outName=win-witr-${{ matrix.arch }}.exe
echo Compiling %outName%...
Expand Down
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <sstream>
#include <ctime>
#include <algorithm>

#define windows_time_to_unix_epoch(x) ((x) - 116444736000000000LL) / 10000000LL
// The above macro converts Windows FILETIME to Unix epoch time in seconds.
// I explain more about why this is needed below and in the README.
Expand Down
Loading