diff options
| author | Thomas Stibor <thomas@stibor.net> | 2022-12-14 14:11:05 +0100 |
|---|---|---|
| committer | Thomas Stibor <thomas@stibor.net> | 2022-12-14 14:26:32 +0100 |
| commit | 1ca7da6914ed12f5180c569ae87051415c3143e2 (patch) | |
| tree | e23ac45e47b3fa8bbcbc6991a9a0a162d4a382b7 /src/check_stmt.cpp | |
| parent | 56e050fbc907df041ce9ba523bbd2819c914f6fc (diff) | |
Enable -out:<filepath> for build and runs with the attribute @(test)
According to the odin help command
$ odin help test
...
-out:<filepath>
Set the file name of the outputted executable
Example: -out:foo.exe
building and running tests the executable output filepath shall be
specified. However, the -out parameter is disabled, resulting in error message:
Unknown flag for 'odin test': 'out'
'out' is supported with the following commands:
run, build
Omitting the -out parameter results in default filepath '01.bin' (on Linux).
However, it is desirable for user specifying the output filepath, e.g. by
using this Makefile snippet:
TARGET=main
FLAGS=-warnings-as-errors -verbose-errors
all: run
run:
@odin run . $(FLAGS) -out:$(TARGET)
test:
@odin test . $(FLAGS) -out:$(TARGET)
clean:
@rm -f $(TARGET)
In addition a typo is fixed.
Diffstat (limited to 'src/check_stmt.cpp')
0 files changed, 0 insertions, 0 deletions