소스 검색

* fix dotest.pp after the wasi->wasip1 rename and the addition of wasip1threads

Nikolay Nikolov 4 달 전
부모
커밋
ac669830a2
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      tests/utils/dotest.pp

+ 4 - 4
tests/utils/dotest.pp

@@ -125,7 +125,7 @@ const
   NoWorkingUnicodeSupport='$nounicode';
   NoWorkingUnicodeSupport='$nounicode';
   TargetHasNoWorkingUnicodeSupport = 'msdos';
   TargetHasNoWorkingUnicodeSupport = 'msdos';
   NoWorkingThread='$nothread';
   NoWorkingThread='$nothread';
-  TargetHasNoWorkingThreadSupport = 'go32v2,msdos,wasi';
+  TargetHasNoWorkingThreadSupport = 'go32v2,msdos,wasip1';
 
 
 procedure TranslateConfig(var AConfig: TConfig);
 procedure TranslateConfig(var AConfig: TConfig);
 begin
 begin
@@ -639,7 +639,7 @@ begin
     end
     end
   else if LTarget='wii' then
   else if LTarget='wii' then
     ExeExt:='.dol'
     ExeExt:='.dol'
-  else if LTarget='wasi' then
+  else if (LTarget='wasip1') or (LTarget='wasip1threads') then
     ExeExt:='.wasm';
     ExeExt:='.wasm';
 end;
 end;
 
 
@@ -1132,7 +1132,7 @@ begin
   if ioresult<>0 then
   if ioresult<>0 then
    exit;
    exit;
   GetCompilerTarget;
   GetCompilerTarget;
-  is_wasi:=(CompilerTarget='wasi');
+  is_wasi:=(CompilerTarget='wasip1') or (CompilerTarget='wasip1threads');
   while not eof(t) do
   while not eof(t) do
    begin
    begin
      readln(t,s);
      readln(t,s);
@@ -1443,7 +1443,7 @@ begin
        ChDir(OldDir);
        ChDir(OldDir);
       {$I+}
       {$I+}
       GetCompilerTarget;
       GetCompilerTarget;
-      if (CompilerTarget='wasi') then
+      if (CompilerTarget='wasip1') or (CompilerTarget='wasip1threads') then
        begin
        begin
          CheckTestExitCode(FullEXELogFile);
          CheckTestExitCode(FullEXELogFile);
        end;
        end;