diff options
| author | gingerBill <bill@gingerbill.org> | 2021-11-26 22:25:07 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-11-26 22:25:07 +0000 |
| commit | 27106dd9aec67ebf9e3c53572513051e8bc973c6 (patch) | |
| tree | 6e8c2c5a03839ca74ed9bd3f1f2bb0bde73ddeb6 /src/main.cpp | |
| parent | 33dc12a61aa2040d5cd82c8a20e3d9ed82a8c9a3 (diff) | |
Allow `.asm`, `.s`, and `.S` as valid assembly file extensions
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 1abe0f42d..7b4bc92ee 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -225,7 +225,7 @@ i32 linker_stage(lbGenerator *gen) { lbModule *m = gen->modules.entries[j].value; for_array(i, m->foreign_library_paths) { String lib = m->foreign_library_paths[i]; - if (string_ends_with(lib, str_lit(".asm"))) { + if (has_asm_extension(lib)) { string_set_add(&asm_files, lib); } else { string_set_add(&libs, lib); @@ -235,7 +235,7 @@ i32 linker_stage(lbGenerator *gen) { for_array(i, gen->default_module.foreign_library_paths) { String lib = gen->default_module.foreign_library_paths[i]; - if (string_ends_with(lib, str_lit(".asm"))) { + if (has_asm_extension(lib)) { string_set_add(&asm_files, lib); } else { string_set_add(&libs, lib); |