Procházet zdrojové kódy

Add missing issigverify+signonce check + always check issigverify+sign(once), even if SignTool not set.

Martijn Laan před 4 měsíci
rodič
revize
ec211aa103
1 změnil soubory, kde provedl 7 přidání a 5 odebrání
  1. 7 5
      Projects/Src/Compiler.SetupCompiler.pas

+ 7 - 5
Projects/Src/Compiler.SetupCompiler.pas

@@ -5389,11 +5389,13 @@ begin
         if (ISSigKeyEntries.Count = 0) and (foISSigVerify in Options) then
           AbortCompile(SCompilerFilesISSigVerifyMissingISSigKeys);
 
-        if (SignTools.Count = 0) and (Sign in [fsYes, fsOnce]) then
-          Sign := fsNoSetting
-        else if (Sign = fsYes) and (foISSigVerify in Options) then
-          AbortCompileFmt(SCompilerParamErrorBadCombo2,
-            [ParamCommonFlags, 'sign', 'issigverify']);
+        if Sign in [fsYes, fsOnce] then begin
+          if foISSigVerify in Options then
+            AbortCompileFmt(SCompilerParamErrorBadCombo2,
+              [ParamCommonFlags, SignFlags[Sign], 'issigverify'])
+          else if SignTools.Count = 0 then
+            Sign := fsNoSetting
+        end;
 
         if not RecurseSubdirs and (foCreateAllSubDirs in Options) then
           AbortCompileFmt(SCompilerParamFlagMissing, ['recursesubdirs', 'createallsubdirs']);