summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 25c73fb)
raw | patch | inline | side by side (parent: 25c73fb)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 24 Feb 2020 17:12:20 +0000 (20:12 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 24 Feb 2020 17:12:20 +0000 (20:12 +0300) |
src/generic/Dsw/Mod/MakeMain.cp | patch | blob | history |
index 04388d2a574ddde1ce50e7968e6b0b5c32867c0c..e4f49c21635861aacb2f1f5cc88dbc17249970d9 100644 (file)
Log.String(" -Xi path Use executable file for internal linker (native only)"); Log.Ln;
Log.String(" -Cg params Pass parameters to Component Pasacal compiler directly"); Log.Ln;
Log.String(" -Ci params Pass parameters to internal linker directly"); Log.Ln;
+ Log.String(" -II Trap on user interrupt"); Log.Ln;
Log.String(" -a Enable automatic dependency resolution"); Log.Ln;
Log.String(" -o name Generate executable file"); Log.Ln;
Log.String(" -j num Specifies the number of jobs to run simultaneously"); Log.Ln;
END
END ParseExternalOpts;
+ PROCEDURE ParseInfoOpts;
+ BEGIN
+ CASE DswOpts.GetOpt("I") OF
+ | "I": Kernel.intTrap := TRUE
+ | ":": Error(10, "-I" + DswOpts.str, "", 0)
+ | "?": Error(11, "-I" + DswOpts.str, "", 0)
+ | 0X: Error(11, "-I", "", 0)
+ END
+ END ParseInfoOpts;
+
PROCEDURE ParseArgs;
BEGIN
exe := NIL; auto := FALSE; jobs := 1; def.next := NIL; mno := 0; rno := 0;
processor := anymach; os := anyos; compiler := anycp;
LOOP
- CASE DswOpts.GetOpt("ao:j:D:U:TCXhV") OF
+ CASE DswOpts.GetOpt("ao:j:D:U:TCXIhV") OF
| "a": auto := TRUE
| "o": exe := DswOpts.str
| "j": jobs := MIN(MAX(StrToInt(DswOpts.str, 1), 1), maxJobs)
| "T": ParseTargetOpts
| "C": ParseCommandOpts
| "X": ParseExternalOpts
+ | "I": ParseInfoOpts
| ":": Error(10, "-" + DswOpts.str, "", 0)
| "?": Error(11, "-" + DswOpts.str, "", 0)
| "$": AddModule(DswOpts.str, def)
BEGIN
NEW(def);
+ ASSERT(def # NIL, 100);
+ Kernel.intTrap := FALSE;
Kernel.Start(Main)
END DswMakeMain.