Browse Source

+ readded the --no-entry option when linking wasi executables

git-svn-id: branches/wasm@46995 -
nickysn 4 years ago
parent
commit
e96faf0a76
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/systems/t_wasi.pas

+ 1 - 1
compiler/systems/t_wasi.pas

@@ -124,7 +124,7 @@ begin
   if HasExports then
   if HasExports then
     cmdstr := cmdstr + ' --export-dynamic'; //' --export-dynamic';
     cmdstr := cmdstr + ' --export-dynamic'; //' --export-dynamic';
 
 
-  cmdstr := cmdstr + ' --allow-undefined';
+  cmdstr := cmdstr + ' --no-entry --allow-undefined';
 
 
   if (cs_link_strip in current_settings.globalswitches) then
   if (cs_link_strip in current_settings.globalswitches) then
    begin
    begin