diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-07-02 22:14:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-02 22:14:54 +0100 |
| commit | 8b49549fd3cc7c7dc73dc79566b24c514392b4aa (patch) | |
| tree | 25c343fd898de212f7bd84862c409ce7ea9952c9 /src/checker.cpp | |
| parent | 0ceae51223d58534343c3d428d611a4bd6123779 (diff) | |
| parent | 5399093050f192c13ea494e69455be8e1052e06c (diff) | |
Merge pull request #3859 from laytan/wasm-stbtt-object-linking-preopens
wasm: support `vendor:stb/truetype` and `vendor:fontstash`
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) { |