1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Fixed NoRT

This commit is contained in:
Brian Fiete 2024-10-23 11:23:56 -04:00
parent 8c1d1e65b3
commit 58ef18735c
2 changed files with 12 additions and 0 deletions

View file

@ -90,7 +90,17 @@ namespace System
static function void(StringView str) OutString = => OutString_Simple;
#if !BF_RUNTIME_DISABLE
private static extern void PutChars(char8* c, int32 len);
#else
[CLink]
private static extern void putchar(char8 c);
private static void PutChars(char8* c, int32 len)
{
for (int i < len)
putchar(c[i]);
}
#endif
public static extern void ReopenHandles();
static void OutString_Simple(StringView str)

View file

@ -34,6 +34,7 @@ IDE\dist\BeefBuild_d -proddir=BeefLibs\corlib -test
@ECHO Building Tiny
bin\RunWithStats IDE\dist\BeefBuild -proddir=IDE\Tests\Tiny -clean -config=Release
@IF %ERRORLEVEL% NEQ 0 GOTO HADERROR
set size=0
FOR /F "usebackq" %%A IN ('IDE\Tests\Tiny\build\Release_Win64\Tiny\Tiny.exe') DO set size=%%~zA
echo Tiny executable size: %size% (expected 13824, max 16000)
@ -48,6 +49,7 @@ if %size% GTR 16000 (
@ECHO Building Tiny NoRT
bin\RunWithStats IDE\dist\BeefBuild -proddir=IDE\Tests\Tiny -clean -config=ReleaseNoRT
@IF %ERRORLEVEL% NEQ 0 GOTO HADERROR
set size=0
FOR /F "usebackq" %%A IN ('IDE\Tests\Tiny\build\ReleaseNoRT_Win64\Tiny\Tiny.exe') DO set size=%%~zA
echo Tiny executable size: %size% (expected 5120, max 7000)