wasm: add foreign import and linking of wasm object files

This commit is contained in:
Laytan Laats
2024-07-02 15:28:08 +02:00
parent 5637ed9ecd
commit 6f1cc8071c
6 changed files with 26 additions and 16 deletions
+1 -2
View File
@@ -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) {