mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
Handle -march properly
Signed-off-by: Kakadu <Kakadu@pm.me>
This commit is contained in:
parent
55d595600d
commit
3f7f51b2f0
10 changed files with 51 additions and 14 deletions
4
stdlib/.gitignore
vendored
4
stdlib/.gitignore
vendored
|
|
@ -3,3 +3,7 @@
|
|||
/*.log
|
||||
*.i
|
||||
*.s
|
||||
*.exe
|
||||
*.x32.exe
|
||||
*.x64.exe
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)))))))
|
||||
|
||||
;)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue