소스 검색

pastojs: forbid subtarget -t parameter in config file

mattias 1 년 전
부모
커밋
c202c6c2fe
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      packages/pastojs/src/pas2jscompiler.pp

+ 2 - 0
packages/pastojs/src/pas2jscompiler.pp

@@ -4057,6 +4057,8 @@ begin
         end;
       't': // subtarget
         begin
+        if not Quick then
+          ParamFatal('subtarget -t parameter can only be passed as cmd line parameter');
         inc(p);
         SubTarget:=copy(Param,p,length(Param));
         end;