Skip to content

Commit 70eb190

Browse files
committed
sct: towards jasmin-ct
1 parent 3ac3620 commit 70eb190

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ CC ?= clang
66
CFLAGS ?= -O3 -Wall -Wextra -Wpedantic -Wvla -Werror -std=c99 \
77
-Wundef -Wshadow -Wcast-align -Wpointer-arith -Wmissing-prototypes \
88
-fstrict-aliasing -fno-common -pipe
9-
JASMIN ?= jasminc
9+
10+
JASMIN ?= jasminc
11+
JASMIN_CT ?= jasmin-ct
1012

1113
# --------------------------------------------------------------------
1214
CI ?= 0

src/Makefile.checksct

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55

66
ifneq ($(OP),)
77

8-
SCT_FLAGS ?=
8+
# TODO: remove --infer
9+
SCT_FLAGS ?= --infer
910

10-
CHECK_SCT_S = ($(JASMINC) -slice $* -checkSCT $(SCT_FLAGS) $< > $@ 2>&1) $(CIT)
11-
CHECK_SCT = ($(JASMINC) -checkSCT $(SCT_FLAGS) $< > $@ 2>&1) $(CIT)
11+
CHECK_SCT_SLICE = ($(JASMIN_CT) $(JINCLUDE) -slice $* --sct $(SCT_FLAGS) $< > $@ 2>&1) $(CIT)
12+
CHECK_SCT = ($(JASMIN_CT) $(JINCLUDE) --sct $(SCT_FLAGS) $< > $@ 2>&1) $(CIT)
1213

1314
SCT_TARGETS = $(addsuffix .sct, $(FUNCTIONS))
1415

@@ -21,7 +22,7 @@ $(OP).sct : $(OP).jazz $(DEPS_DIR)/$(OP).sct.d | $(DEPS_DIR) $(CI_DIR)
2122
$(SCT_TARGETS):
2223
%.sct : $(OP).jazz $(DEPS_DIR)/%.sct.d | $(DEPS_DIR) $(CI_DIR)
2324
$(DEPS)
24-
$(CHECK_SCT_S)
25+
$(CHECK_SCT_SLICE)
2526

2627
DEPFILES := \
2728
$(DEPFILES) \

src/Makefile.common

+3
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@ endif
3535
JEXT ?= jazz
3636
override JFLAGS += -noinsertarraycopy
3737
JINCLUDE = -I Jade:$(SRC)
38+
3839
JASMIN ?= jasminc
3940
JASMINC := $(JASMIN) $(JFLAGS) $(JINCLUDE)
4041
COMPILE = ($(JASMINC) -o $@ $<) $(CIT)
4142

43+
JASMIN_CT ?= jasmin-ct
44+
4245
# --------------------------------------------------------------------
4346
include $(SRC)/$(OPERATION)/EcFlags.mk
4447

0 commit comments

Comments
 (0)