Browse Source

- do not create the PASCALMAIN alias to the main function for the WASI target, because that seems to be unsupported by the llvm-mc assembler

git-svn-id: branches/wasm@46934 -
nickysn 4 years ago
parent
commit
3536efbcc3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      compiler/pmodules.pas

+ 4 - 0
compiler/pmodules.pas

@@ -2210,6 +2210,10 @@ type
                FPC_SYSTEMMAIN) }
              main_procinfo:=create_main_proc('PASCALMAIN',potype_proginit,current_module.localsymtable);
            end
+         else if target_info.system=system_wasm32_wasi then
+           begin
+             main_procinfo:=create_main_proc(mainaliasname,potype_proginit,current_module.localsymtable);
+           end
          else
            begin
              main_procinfo:=create_main_proc(mainaliasname,potype_proginit,current_module.localsymtable);