Browse Source

+ enable the atomics extension on the llvm-mc command line (extension appears
to be recognized since LLVM 8.0, so it should be safe to always enable this
from the llvm-mc command line)

Nikolay Nikolov 3 years ago
parent
commit
ddab39dbdc
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;
           id          : tasm;
           idtxt       : string[12];
           idtxt       : string[12];
           asmbin      : string[16];
           asmbin      : string[16];
-          asmcmd      : string[113];
+          asmcmd      : string[121];
           supported_targets : set of tsystem;
           supported_targets : set of tsystem;
           flags        : set of tasmflags;
           flags        : set of tasmflags;
           labelprefix : string[3];
           labelprefix : string[3];

+ 1 - 1
compiler/wasm32/agllvmmc.pas

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