diff --git a/example/makefile b/example/makefile index 97985e8..2762a2a 100644 --- a/example/makefile +++ b/example/makefile @@ -1,7 +1,8 @@ CFLAGS = -g bin/out: src/main.nub src/c.nub - dotnet run --project ../src/compiler/CLI/CLI.csproj src/main.nub src/c.nub + dotnet build ../src/compiler/CLI/CLI.csproj -c Release + ../src/compiler/CLI/bin/Debug/net9.0/nubc src/main.nub src/c.nub mkdir -p bin gcc $(CFLAGS) -o bin/out bin-int/out/out.a diff --git a/example/src/main.nub b/example/src/main.nub index 4b2905d..fd8ef94 100644 --- a/example/src/main.nub +++ b/example/src/main.nub @@ -3,5 +3,4 @@ namespace main export func main(args: []cstring): i64 { c::puts("test") return 0 - }