mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-27 09:50:03 +00:00
- 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.
19 lines
352 B
Bash
Executable File
19 lines
352 B
Bash
Executable File
#!/bin/bash
|
|
set -eu
|
|
|
|
mkdir -p tests/issues/build
|
|
|
|
COMMON="-collection:tests=tests -out:tests/issues/build/test_issue"
|
|
|
|
set -x
|
|
|
|
./odin build tests/issues/test_issue_829.odin $COMMON -file
|
|
tests/issues/build/test_issue.bin
|
|
|
|
./odin build tests/issues/test_issue_1592.odin $COMMON -file
|
|
tests/issues/build/test_issue.bin
|
|
|
|
set +x
|
|
|
|
rm -rf tests/issues/build
|