mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 15:42:25 +00:00
fixed issue with multiple modules compilation.
now voc adds dependency modules object files to the main module compiling command line. for example, if MM0 imports MM1 then if we call voc like: voc -l MM1.Mod -s MM0.Mod -M the commandline will look like cc MM0.c MM1.o -static -o MM0 -fPIC -g -I /opt/voc-1.0/src/lib/system/gnuc/x86_64 -I /opt/voc-1.0/lib/voc/obj -lVishapOberon -L. -L/opt/voc-1.0/lib
This commit is contained in:
parent
cb804b16cb
commit
a3214b8154
4 changed files with 32 additions and 18 deletions
|
|
@ -94,7 +94,8 @@ MODULE OPC; (* copyright (c) J. Templ 12.7.95 / 3.7.96 *)
|
|||
BEGIN
|
||||
indentLevel := 0;
|
||||
ptrinit := OPM.ptrinit IN OPM.opt;
|
||||
mainprog := OPM.mainprog IN OPM.opt;
|
||||
(*mainprog := OPM.mainprog IN OPM.opt;*)
|
||||
mainprog := OPM.mainProg OR OPM.mainLinkStat;
|
||||
ansi := OPM.ansi IN OPM.opt;
|
||||
IF ansi THEN BodyNameExt := "__init(void)" ELSE BodyNameExt := "__init()" END
|
||||
END Init;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue