diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2022-08-29 14:50:18 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2022-08-29 14:50:18 +0200 |
| commit | 317db2758ab30370fdebf47486d560fe17d5ddc4 (patch) | |
| tree | d5e75cedc3700d252fd68c5b8448888e460c1c1a /src/llvm_backend.cpp | |
| parent | 25102d4792501b070f05cab5a6f774a717754a79 (diff) | |
Revert "Fix #1985"
This reverts commit 25102d4792501b070f05cab5a6f774a717754a79.
Diffstat (limited to 'src/llvm_backend.cpp')
| -rw-r--r-- | src/llvm_backend.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index 29dc13dad..6ee1541d6 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -1017,11 +1017,8 @@ String lb_filepath_obj_for_module(lbModule *m) { } String ext = {}; - if (build_context.out_filepath.len > 0) { - if (build_context.build_paths[BuildPath_Output].ext.len > 0) { - ext = concatenate_strings(permanent_allocator(), STR_LIT("."), build_context.build_paths[BuildPath_Output].ext); - } - } else if (build_context.build_mode == BuildMode_Assembly) { + + if (build_context.build_mode == BuildMode_Assembly) { ext = STR_LIT(".S"); } else { if (is_arch_wasm()) { @@ -1053,6 +1050,7 @@ String lb_filepath_obj_for_module(lbModule *m) { } } } + return concatenate_strings(permanent_allocator(), path, ext); } |