diff options
| author | gingerBill <bill@gingerbill.org> | 2021-03-09 11:40:42 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-03-09 11:40:42 +0000 |
| commit | 84bb3499005e89184a46dc34dc575fd879cb6f26 (patch) | |
| tree | 97ef99f8e85ee5e7bfd3db11a393bff47167d02a /src | |
| parent | 3ff7bded642ef399fda68ac1078d6a091474ab11 (diff) | |
| parent | 8784b79482159ab4908c4b7233c24c6af06a8861 (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src')
| -rw-r--r-- | src/checker.cpp | 2 | ||||
| -rw-r--r-- | src/main.cpp | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index be58538a6..d5d6bf5c3 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -1907,7 +1907,7 @@ void generate_minimum_dependency_set(Checker *c, Entity *start) { array_add(&c->info.testing_procedures, e); } } - } else { + } else if (start != nullptr) { start->flags |= EntityFlag_Used; add_dependency_to_set(c, start); } diff --git a/src/main.cpp b/src/main.cpp index b1fc8fd35..0897e5fa6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -875,12 +875,6 @@ bool parse_build_flags(Array<String> args) { String path = value.value_string; path = string_trim_whitespace(path); if (is_build_flag_path_valid(path)) { - #if defined(GB_SYSTEM_WINDOWS) - String ext = path_extension(path); - if (ext == ".exe") { - path = substring(path, 0, string_extension_position(path)); - } - #endif build_context.out_filepath = path_to_full_path(heap_allocator(), path); } else { gb_printf_err("Invalid -out path, got %.*s\n", LIT(path)); |