Browse Source

+ pass '--no-type-check' to llvm-mc-13, because its type checking is broken

Nikolay Nikolov 11 months ago
parent
commit
a76ca8f60e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      compiler/systems.pas
  2. 1 1
      compiler/wasm32/agllvmmc.pas

+ 1 - 1
compiler/systems.pas

@@ -86,7 +86,7 @@ interface
           id          : tasm;
           idtxt       : string[17];
           asmbin      : string[16];
-          asmcmd      : string[138];
+          asmcmd      : string[154];
           supported_targets : set of tsystem;
           flags        : set of tasmflags;
           labelprefix : string[3];

+ 1 - 1
compiler/wasm32/agllvmmc.pas

@@ -420,7 +420,7 @@ implementation
          id     : as_wasm32_llvm_mc_v13;
          idtxt  : 'LLVM-MC-13';
          asmbin : 'llvm-mc-13';
-         asmcmd : '--assemble --arch=wasm32 -mattr=+sign-ext,+exception-handling,+bulk-memory,+atomics,+reference-types --filetype=obj -o $OBJ $EXTRAOPT $ASM';
+         asmcmd : '--assemble --arch=wasm32 -mattr=+sign-ext,+exception-handling,+bulk-memory,+atomics,+reference-types --filetype=obj --no-type-check -o $OBJ $EXTRAOPT $ASM';
          supported_targets : [system_wasm32_embedded,system_wasm32_wasi];
          flags : [af_smartlink_sections];
          labelprefix : '.L';