Skip to content

Commit

Permalink
Merge pull request #3610 from mtzguido/misc
Browse files Browse the repository at this point in the history
Fixing example in binary package
  • Loading branch information
mtzguido authored Nov 7, 2024
2 parents 8ae8463 + 919d21c commit 2e5c4a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions examples/native_tactics/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# 'include test.mk'.

FSTAR_HOME=../..
FSTAR=$(FSTAR_HOME)/bin/fstar.exe $(OTHERFLAGS)
FSTAR_EXE ?= $(FSTAR_HOME)/bin/fstar.exe $(OTHERFLAGS)

# Tests for which the native tactics used in module named Sample.Test.fst are
# declared in a corresponding module named Sample.fst
Expand Down Expand Up @@ -48,33 +48,33 @@ OTHERFLAGS +=
all: $(addsuffix .sep.test, $(TAC_MODULES)) $(addsuffix .test, $(ALL))

# .depend:
# $(FSTAR) --dep full $(addsuffix .Test.fst, $(ALL)) --output_deps_to .depend
# $(FSTAR_EXE) --dep full $(addsuffix .Test.fst, $(ALL)) --output_deps_to .depend

# include .depend

.PHONY: %.test
.PRECIOUS: %.ml

%.test: %.fst %.ml
$(FSTAR) $*.fst --load $*
$(FSTAR_EXE) $*.fst --load $*
touch $@

%.sep.test: %.fst %.ml
$(FSTAR) $*.Test.fst --load $*
$(FSTAR_EXE) $*.Test.fst --load $*
touch $@

%.ml: %.fst
$(FSTAR) $*.fst --cache_checked_modules --codegen Plugin --extract $*
$(FSTAR_EXE) $*.fst --cache_checked_modules --codegen Plugin --extract $*
touch $@

%.clean:
rm -f Registers_List.ml Registers.List.ml Registers_List.cmxs

%.native: %.fst Registers.List.ml
$(FSTAR) $*.fst --load Registers.List --warn_error -266
$(FSTAR_EXE) $*.fst --load Registers.List --warn_error -266

%.interp: %.fst Registers.List.fst
$(FSTAR) $*.fst
$(FSTAR_EXE) $*.fst


clean:
Expand Down
1 change: 1 addition & 0 deletions src/ocaml-output/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ install-sides:
@# ucontrib is needed by examples/crypto
$(call install_dir,examples,share/fstar/examples)
$(call install_dir,ucontrib,share/fstar/contrib)
$(call install_dir,mk,share/fstar/mk)
@# Then the tutorial
ifeq ($(MADOKO),Madoko)
@# Build the tutorial first
Expand Down

0 comments on commit 2e5c4a4

Please sign in to comment.