Преглед на файлове

Add -XlS option for wasm32

Pierre Muller преди 3 седмици
родител
ревизия
7c09be1b5c
променени са 3 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 2 1
      compiler/msg/errore.msg
  2. 1 1
      compiler/options.pas
  3. 1 1
      compiler/wasm32/agllvmmc.pas

+ 2 - 1
compiler/msg/errore.msg

@@ -4586,7 +4586,8 @@ P*2WT_Specify MPW tool type application (Classic Mac OS)
 **2Xf_Substitute pthread library name for linking (BSD)
 **2Xg_Create debuginfo in a separate file and add a debuglink section to executable
 **2Xi_Use internal linker
-L*2XlS<x>_LLVM utilties suffix (e.g. -7 in case clang is called clang-7)
+L*2XlS<x>_LLVM utilities suffix (e.g. -7 in case clang is called clang-7)
+W*2XlS<x>_LLVM utilities suffix (e.g. -17 in case llvm-mc is called llvm-mc-17)
 **2XLA_Define library substitutions for linking
 **2XLD_Exclude default order of standard libraries
 **2XLO_Define order of library linking

+ 1 - 1
compiler/options.pas

@@ -4286,7 +4286,7 @@ begin
            else
              include(init_settings.globalswitches,cs_link_native);
          end;
-{$ifdef llvm}
+{$if defined(llvm) or defined(wasm32)}
        'l' :
          begin
            if j=length(more) then

+ 1 - 1
compiler/wasm32/agllvmmc.pas

@@ -596,7 +596,7 @@ implementation
          asmbin : 'llvm-mc';
          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_wasip1,system_wasm32_wasip1threads,system_wasm32_wasip2];
-         flags : [af_smartlink_sections];
+         flags : [af_smartlink_sections, af_llvm];
          labelprefix : '.L';
          labelmaxlen : -1;
          comment : '# ';