rc.exe misc/icon_resource.rc
cl.exe %FLAGS% /Icompiler/include /std:c17 /TC %SOURCE_FILES% /link /IGNORE:4217 %LINK_OPTIONS% /DEBUG /OUT:onyx.exe /incremental:no /opt:ref /subsystem:console misc\icon_resource.res
+REM Don't continue if we had compilation errors. This prevents CI to succeed.
+if %ERRORLEVEL% neq 0 (
+ echo Compiler compilation failed.
+ exit /b %ERRORLEVEL%
+)
+
del *.pdb > NUL 2> NUL
del *.ilk > NUL 2> NUL
del *.obj > NUL 2> NUL
cl /MT /std:c17 /TC /I compiler/include /I shared/include /D_USRDLL /D_WINDLL runtime\onyx_runtime.c /link /DLL ws2_32.lib bcrypt.lib Synchronization.lib kernel32.lib /OUT:onyx_runtime.dll
+if %ERRORLEVEL% neq 0 (
+ echo Onyx runtime compilation failed.
+ exit /b %ERRORLEVEL%
+)
+
del onyx_runtime.obj
del onyx_runtime.lib
del onyx_runtime.exp
out->modified_time = timespec_to_ms(s.st_mtimespec);
out->accessed_time = timespec_to_ms(s.st_atimespec);
out->change_time = timespec_to_ms(s.st_ctimespec);
+#elif defined(_BH_WINDOWS)
+ out->modified_time = s.st_mtime * 1000;
+ out->accessed_time = s.st_atime * 1000;
+ out->change_time = s.st_ctime * 1000;
#else
out->modified_time = timespec_to_ms(s.st_mtim);
out->accessed_time = timespec_to_ms(s.st_atim);