From 3f567c7517241b0f2e08aeea6a4f4f1cae275a27 Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Mon, 20 Jul 2020 20:02:01 +0300 Subject: [PATCH] cpmake: pass more info to build script --- src/generic/Dsw/Mod/MakeMain.cp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/generic/Dsw/Mod/MakeMain.cp b/src/generic/Dsw/Mod/MakeMain.cp index 5c84f52..8247999 100644 --- a/src/generic/Dsw/Mod/MakeMain.cp +++ b/src/generic/Dsw/Mod/MakeMain.cp @@ -29,7 +29,8 @@ MODULE DswMakeMain; module = 75; eof = 76; (* module state flags *) - imported = 0; trace = 1; hasObj = 2; hasSym = 3; hasErrors = 4; library = 5; + imported = 0; trace = 1; hasObj = 2; hasSym = 3; hasErrors = 4; + library = 5; force = 6; debugImport = FALSE; debugOrder = FALSE; @@ -350,6 +351,7 @@ MODULE DswMakeMain; ParseModule(m); DevCPR.Check; ok := DevCPM.noerr; + IF DevCPR.used THEN INCL(m.flags, force) END; DevCPR.Close; DevCPM.InsertMarks; DevCPM.Close; @@ -521,6 +523,14 @@ MODULE DswMakeMain; p := DswProcs.dir.New(); p.Program(base + "/" + target + "/" + "build"); p.PutParam(m.odc); + IF force IN m.flags THEN p.PutParam("-f") END; + IF library IN m.flags THEN p.PutParam("-s") END; + s := def.next; + WHILE s # NIL DO + IF s.value THEN p.PutParam("-D") ELSE p.PutParam("-d") END; + p.PutParam(s.name$); + s := s.next + END; RETURN p END PrepareCompiler; -- 2.29.2