浏览代码

+ add WASI as extra define for the wasip1 target

Nikolay Nikolov 6 月之前
父节点
当前提交
59ab80bbb0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/systems/i_wasi.pas

+ 2 - 2
compiler/systems/i_wasi.pas

@@ -33,7 +33,7 @@ unit i_wasi;
           (
             system       : system_wasm32_wasip1;
             name         : 'The WebAssembly System Interface Preview 1 (WASI 0.1)';
-            shortname    : 'Wasi';
+            shortname    : 'Wasip1';
             flags        : [tf_under_development,tf_needs_symbol_size,tf_needs_symbol_type,
                             tf_files_case_sensitive,
                             tf_smartlink_sections,tf_has_winlike_resources,
@@ -41,7 +41,7 @@ unit i_wasi;
                             tf_section_threadvars];
             cpu          : cpu_wasm32;
             unit_env     : '';
-            extradefines : '';
+            extradefines : 'WASI';
             exeext       : '.wasm';
             defext       : '.def';
             scriptext    : '.sh';