include c std lib
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
CFLAGS = -Wall -Werror -Wextra -g
|
||||
|
||||
OBJECTS := $(shell dotnet run --project ../src/compiler/CLI/CLI.csproj src/main.nub src/c.nub)
|
||||
|
||||
example:
|
||||
mkdir -p bin
|
||||
gcc -o bin/out $(OBJECTS)
|
||||
gcc $(CFLAGS) -o bin/out lib/libruntime_x64.a $(OBJECTS)
|
||||
|
||||
clean:
|
||||
rm -r bin bin-int
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace c
|
||||
|
||||
extern func printf(fmt: cstring, arg: u64): void
|
||||
// extern func printf(fmt: cstring, arg: u64): void
|
||||
extern func puts(fmt: cstring)
|
||||
|
||||
Reference in New Issue
Block a user