diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-07-02 15:28:08 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-07-02 15:28:08 +0200 |
| commit | 6f1cc8071c3ff49c5431cc8ad078d12883f91545 (patch) | |
| tree | d87348be99cb43cfbd830bedbfdc25aafdda6cc0 /src/checker.cpp | |
| parent | 5637ed9ecdd31929792c59a79d396d24b5bb0ee1 (diff) | |
wasm: add foreign import and linking of wasm object files
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 734659510..c3d2ae5eb 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -5000,9 +5000,8 @@ gb_internal void check_foreign_import_fullpaths(Checker *c) { String file_str = op.value.value_string; file_str = string_trim_whitespace(file_str); - String fullpath = file_str; - if (allow_check_foreign_filepath()) { + if (!is_arch_wasm() || string_ends_with(file_str, str_lit(".o"))) { String foreign_path = {}; bool ok = determine_path_from_string(nullptr, decl, base_dir, file_str, &foreign_path, /*use error not syntax_error*/true); if (ok) { |