mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed NoRT
This commit is contained in:
parent
8c1d1e65b3
commit
58ef18735c
2 changed files with 12 additions and 0 deletions
|
@ -90,7 +90,17 @@ namespace System
|
||||||
|
|
||||||
static function void(StringView str) OutString = => OutString_Simple;
|
static function void(StringView str) OutString = => OutString_Simple;
|
||||||
|
|
||||||
|
#if !BF_RUNTIME_DISABLE
|
||||||
private static extern void PutChars(char8* c, int32 len);
|
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();
|
public static extern void ReopenHandles();
|
||||||
|
|
||||||
static void OutString_Simple(StringView str)
|
static void OutString_Simple(StringView str)
|
||||||
|
|
|
@ -34,6 +34,7 @@ IDE\dist\BeefBuild_d -proddir=BeefLibs\corlib -test
|
||||||
|
|
||||||
@ECHO Building Tiny
|
@ECHO Building Tiny
|
||||||
bin\RunWithStats IDE\dist\BeefBuild -proddir=IDE\Tests\Tiny -clean -config=Release
|
bin\RunWithStats IDE\dist\BeefBuild -proddir=IDE\Tests\Tiny -clean -config=Release
|
||||||
|
@IF %ERRORLEVEL% NEQ 0 GOTO HADERROR
|
||||||
set size=0
|
set size=0
|
||||||
FOR /F "usebackq" %%A IN ('IDE\Tests\Tiny\build\Release_Win64\Tiny\Tiny.exe') DO set size=%%~zA
|
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)
|
echo Tiny executable size: %size% (expected 13824, max 16000)
|
||||||
|
@ -48,6 +49,7 @@ if %size% GTR 16000 (
|
||||||
|
|
||||||
@ECHO Building Tiny NoRT
|
@ECHO Building Tiny NoRT
|
||||||
bin\RunWithStats IDE\dist\BeefBuild -proddir=IDE\Tests\Tiny -clean -config=ReleaseNoRT
|
bin\RunWithStats IDE\dist\BeefBuild -proddir=IDE\Tests\Tiny -clean -config=ReleaseNoRT
|
||||||
|
@IF %ERRORLEVEL% NEQ 0 GOTO HADERROR
|
||||||
set size=0
|
set size=0
|
||||||
FOR /F "usebackq" %%A IN ('IDE\Tests\Tiny\build\ReleaseNoRT_Win64\Tiny\Tiny.exe') DO set size=%%~zA
|
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)
|
echo Tiny executable size: %size% (expected 5120, max 7000)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue