Stdlib compiles twice

Signed-off-by: Kakadu <Kakadu@pm.me>
This commit is contained in:
Kakadu 2024-08-30 14:35:53 +03:00
parent 092d5f2f33
commit 3a10d4a2a6
3 changed files with 106 additions and 51 deletions

View file

@ -1,15 +1,52 @@
(rule
(deps ../List.lama ../Makefile ../../runtime/Std.i)
(targets List.i List.o)
(deps
../Makefile
../../runtime/Std.i
../List.lama
%{project_root}/src/Driver.exe)
(targets
List.i
List.o
Buffer.i
Buffer.o
Collection.i
Collection.o
Data.i
Data.o
Fun.i
Fun.o
Lazy.i
Lazy.o
List.i
List.o
Matcher.i
Matcher.o
Ostap.i
Ostap.o
Random.i
Random.o
Ref.i
Ref.o
STM.i
STM.o
Timer.i
Timer.o)
(mode
(promote (until-clean)))
(action
(progn
(setenv
BDIR
"amd64"
SRCDIR
".."
; (setenv
; FILES
; "List.lama Buffer.lama Collection.lama Data.lama Fun.lama"
(setenv
LAMA
"../runtime"
"../../runtime"
(setenv
LAMAC
"../src/Driver.exe -I ../runtime"
(run make -C .. all)))))))
"../../src/Driver.exe -march=amd64 -I ../runtime32"
(run make -j2 -f ../Makefile all)))))))
;)