mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-12 22:33:36 +00:00
Compiler: Allow -out: to not have an extension on *nix for executables (only).
This commit is contained in:
@@ -1308,7 +1308,9 @@ bool init_build_paths(String init_filename) {
|
||||
|
||||
// Do we have an extension? We might not if the output filename was supplied.
|
||||
if (bc->build_paths[BuildPath_Output].ext.len == 0) {
|
||||
bc->build_paths[BuildPath_Output].ext = copy_string(ha, output_extension);
|
||||
if (build_context.metrics.os == TargetOs_windows || build_context.build_mode != BuildMode_Executable) {
|
||||
bc->build_paths[BuildPath_Output].ext = copy_string(ha, output_extension);
|
||||
}
|
||||
}
|
||||
|
||||
// Check if output path is a directory.
|
||||
|
||||
@@ -8,10 +8,10 @@ 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
|
||||
tests/issues/build/test_issue
|
||||
|
||||
./odin build tests/issues/test_issue_1592.odin $COMMON -file
|
||||
tests/issues/build/test_issue.bin
|
||||
tests/issues/build/test_issue
|
||||
|
||||
set +x
|
||||
|
||||
|
||||
2
tests/vendor/Makefile
vendored
2
tests/vendor/Makefile
vendored
@@ -10,4 +10,4 @@ endif
|
||||
all: botan_test
|
||||
|
||||
botan_test:
|
||||
$(ODIN) run botan -out=botan_hash -o:speed -no-bounds-check $(ODINFLAGS)
|
||||
$(ODIN) run botan -out=test_botan_hash -o:speed -no-bounds-check $(ODINFLAGS)
|
||||
|
||||
Reference in New Issue
Block a user