Skip to content

Commit

Permalink
Merge pull request #3377 from mtzguido/ci_hints
Browse files Browse the repository at this point in the history
Tidy up hint usage
  • Loading branch information
mtzguido authored Aug 15, 2024
2 parents d33938a + 17581d2 commit 3a23f81
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion .docker/build/build_funs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,4 @@ function build_fstar() {
# Some environment variables we want
export V=1 # Make sure to get verbose output from makefiles
export OCAMLRUNPARAM=b
export OTHERFLAGS="--use_hints"
export MAKEFLAGS="$MAKEFLAGS -Otarget" # Group make output by target
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ output-bug-reports:
# snapshot, nor run the build-standalone script.
.PHONY: ci
ci:
+$(Q)OTHERFLAGS="${OTHERFLAGS} --use_hints" FSTAR_HOME=$(CURDIR) $(MAKE) ci-pre
+$(Q)OTHERFLAGS="${OTHERFLAGS} --use_hints" FSTAR_HOME=$(CURDIR) $(MAKE) ci-post
+$(Q)FSTAR_HOME=$(CURDIR) $(MAKE) ci-pre
+$(Q)FSTAR_HOME=$(CURDIR) $(MAKE) ci-post

# This rule runs a CI job in a local container, exactly like is done for
# CI.
Expand Down
6 changes: 5 additions & 1 deletion examples/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ CACHE_DIR ?= _cache
ADMIT ?=
MAYBE_ADMIT = $(if $(ADMIT),--admit_smt_queries true)

# Set HINTS= (empty) to not use hints
HINTS ?= 1
MAYBE_HINTS = $(if $(HINTS),--use_hints)

################################################################################
# YOU SHOULDN'T NEED TO TOUCH THE REST
################################################################################
Expand All @@ -54,7 +58,7 @@ VERBOSE_FSTAR=$(BENCHMARK_PRE) $(FSTAR) \
--odir $(OUTPUT_DIRECTORY) \
--cache_dir $(CACHE_DIR) \
$(addprefix --include , $(INCLUDE_PATHS)) \
$(OTHERFLAGS) $(MAYBE_ADMIT)
$(OTHERFLAGS) $(MAYBE_ADMIT) $(MAYBE_HINTS)

# As above, but perhaps with --silent, and perhaps with a prefix (usually for monitoring)
MY_FSTAR=$(RUNLIM) $(VERBOSE_FSTAR) $(SIL)
Expand Down

0 comments on commit 3a23f81

Please sign in to comment.