aboutsummaryrefslogtreecommitdiff
path: root/build_odin.sh
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2022-04-06 18:26:23 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2022-04-24 13:37:26 +0200
commit3cab2592c3e5a06882ffd711871a08c893b043f1 (patch)
treea012d5e76f816ea36a8e6489f38cdca9088ad4a5 /build_odin.sh
parent5422a3b17eae821df4adf869960995e922eb0e76 (diff)
Compiler: Add early error for output path being a directory.
- Introduce new `Path` type and an array of build paths on the build context. - Resolve input and output paths/files early (before parsing). - Error early if inputs are missing or outputs are directories. - Plumb new file path generation into linker stage instead of its adhoc method. TODO: - Remove more adhoc file path generation in parser and linker stage. - Make intermediate object file generation use new path system. - Round out and robustify Path helper functions.
Diffstat (limited to 'build_odin.sh')
-rwxr-xr-xbuild_odin.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build_odin.sh b/build_odin.sh
index aef3f2836..4810cafd2 100755
--- a/build_odin.sh
+++ b/build_odin.sh
@@ -102,7 +102,7 @@ build_odin() {
}
run_demo() {
- ./odin run examples/demo/demo.odin -file
+ ./odin run examples/demo
}
case $OS in
@@ -147,4 +147,4 @@ if [[ $# -eq 1 ]]; then
exit 0
else
panic "Too many arguments!"
-fi
+fi \ No newline at end of file