Handle -march properly

Signed-off-by: Kakadu <Kakadu@pm.me>
This commit is contained in:
Kakadu 2024-09-05 14:50:27 +03:00
parent 55d595600d
commit 3f7f51b2f0
10 changed files with 51 additions and 14 deletions

4
stdlib/.gitignore vendored
View file

@ -3,3 +3,7 @@
/*.log
*.i
*.s
*.exe
*.x32.exe
*.x64.exe

View file

@ -2,7 +2,9 @@
SHELL := /bin/bash
SRCDIR ?= .
$(info SRCDIR = $(SRCDIR))
FILES ?= $(wildcard $(SRCDIR)/*.lama)
$(info FILES = $(FILES))
OFILES = $(FILES:$(SRCDIR)/%=%)
OFILES := $(OFILES:.lama=.o)
$(info OFILES = $(OFILES))
@ -11,7 +13,7 @@ LAMAC ?= ../src/lamac
BDIR ?= .
all: $(addprefix $(BDIR)/,$(ALL))
$(info ALL = $(ALL))
$(info ALL = $(ALL), SRCDIR = $(SRCDIR))
$(BDIR)/Fun.o: $(BDIR)/Ref.o
$(BDIR)/Data.o: $(BDIR)/Ref.o $(BDIR)/Collection.o

View file

@ -3,6 +3,19 @@
../Makefile
../../runtime/Std.i
../List.lama
../Array.lama
../Buffer.lama
../Collection.lama
../Data.lama
../Fun.lama
../Lazy.lama
../List.lama
../Matcher.lama
../Ostap.lama
../Random.lama
../Ref.lama
../STM.lama
../Timer.lama
%{project_root}/src/Driver.exe)
(targets
List.i
@ -48,5 +61,3 @@
LAMAC
"../../src/Driver.exe -march=x86 -I ../runtime32"
(run make -j2 -f ../Makefile all)))))))
;)

View file

@ -3,6 +3,19 @@
../Makefile
../../runtime/Std.i
../List.lama
../Array.lama
../Buffer.lama
../Collection.lama
../Data.lama
../Fun.lama
../Lazy.lama
../List.lama
../Matcher.lama
../Ostap.lama
../Random.lama
../Ref.lama
../STM.lama
../Timer.lama
%{project_root}/src/Driver.exe)
(targets
List.i