...
This commit is contained in:
4
build.sh
4
build.sh
@@ -5,9 +5,7 @@ mkdir -p out
|
||||
|
||||
dotnet publish -c Release src/compiler/Nub.Lang
|
||||
|
||||
clear
|
||||
|
||||
nub example out/out.qbe > out/out.qbe
|
||||
nub example > out/out.qbe
|
||||
|
||||
nasm -g -felf64 src/runtime/runtime.asm -o out/runtime.o
|
||||
|
||||
|
||||
1
run.sh
1
run.sh
@@ -1,7 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
./clean.sh
|
||||
clear
|
||||
./build.sh
|
||||
./out/program
|
||||
echo "Process exited with status code $?"
|
||||
|
||||
@@ -10,7 +10,7 @@ internal static class Program
|
||||
{
|
||||
public static int Main(string[] args)
|
||||
{
|
||||
if (args.Length != 2)
|
||||
if (args.Length != 1)
|
||||
{
|
||||
Console.Error.WriteLine("Usage: nub <input-dir>");
|
||||
Console.Error.WriteLine("Example: nub src");
|
||||
|
||||
Reference in New Issue
Block a user