From bdeb2c4d7308ce93fcb6e21195b6f532180c2fa7 Mon Sep 17 00:00:00 2001 From: nub31 Date: Mon, 16 Mar 2026 17:05:24 +0100 Subject: [PATCH] Update build --- examples/build | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/examples/build b/examples/build index 896bf16..c855df2 100755 --- a/examples/build +++ b/examples/build @@ -2,16 +2,20 @@ set -e -pushd ../compiler - dotnet build -c Release -popd +SCRIPT_DIR=$(dirname "$0") -pushd core - time ../../compiler/bin/Release/net9.0/Compiler sys.nub print.nub --type=lib -popd +pushd $SCRIPT_DIR + pushd ../compiler + dotnet build -c Release + popd -pushd program - time ../../compiler/bin/Release/net9.0/Compiler main.nub ../core/.build/out.nublib -popd + pushd core + time ../../compiler/bin/Release/net9.0/Compiler sys.nub print.nub --type=lib + popd -./program/.build/out + pushd program + time ../../compiler/bin/Release/net9.0/Compiler main.nub ../core/.build/out.nublib + popd + + ./program/.build/out +popd