...
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
CC = clang
|
||||
NUBC = ../src/compiler/NubLang.CLI/bin/Debug/net9.0/nubc
|
||||
|
||||
out: build/out.a
|
||||
$(CC) -o out build/out.a
|
||||
.build/out: .build/out.a
|
||||
$(CC) -g -o .build/out .build/out.a
|
||||
|
||||
build/out.a: $(NUBC) src/main.nub
|
||||
.build/out.a: $(NUBC) src/main.nub
|
||||
$(NUBC) src/main.nub
|
||||
|
||||
$(NUBC):
|
||||
dotnet build ../src/compiler/NubLang.CLI/NubLang.CLI.csproj
|
||||
|
||||
run: out
|
||||
./out
|
||||
run: .build/out
|
||||
./.build/out
|
||||
|
||||
clean:
|
||||
@rm -r build 2>/dev/null || true
|
||||
@rm -r .build 2>/dev/null || true
|
||||
@rm out 2>/dev/null || true
|
||||
|
||||
@@ -23,12 +23,12 @@ func main(args: []cstring): i64
|
||||
age = "23"
|
||||
}
|
||||
|
||||
test(x&)
|
||||
puts(x.age)
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
func test(human: ^Human)
|
||||
{
|
||||
puts(human^.name.last)
|
||||
}
|
||||
// func test(human: ^Human)
|
||||
// {
|
||||
// puts(human^.name.last)
|
||||
// }
|
||||
Reference in New Issue
Block a user