Skip to content

Commit

Permalink
Merge pull request #3454 from mtzguido/include
Browse files Browse the repository at this point in the history
src: use fstar.include
  • Loading branch information
mtzguido authored Sep 9, 2024
2 parents 7aea281 + e75d320 commit 7392b89
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Makefile.boot.common
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Makefile.boot includes it too for bootstrapping
# Makefiles that include it should define FSTAR_HOME before the include

# Used by Pulse, remove later
INCLUDE_PATHS = \
basic \
class \
Expand All @@ -23,7 +24,7 @@ CACHE_DIR?=$(FSTAR_HOME)/src/.cache.boot

# 274, else we get a warning for shadowing parse.fsi, when opening FStar.Parser namespace

FSTAR_BOOT_OPTIONS=$(OTHERFLAGS) --lax --no_location_info --warn_error -271-272-241-319-274 --cache_dir $(CACHE_DIR) $(addprefix --include , $(addprefix $(FSTAR_HOME)/src/,$(INCLUDE_PATHS)))
FSTAR_BOOT_OPTIONS=$(OTHERFLAGS) --lax --no_location_info --warn_error -271-272-241-319-274 --cache_dir $(CACHE_DIR)

%.fsti-in %.fst-in:
@echo $(FSTAR_BOOT_OPTIONS)
6 changes: 6 additions & 0 deletions src/extraction/FStar.Extraction.ML.PrintML.fst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ open FStar.Compiler
open FStar.Extraction.ML.Syntax
open FStar.Extraction.ML.Code

(* NOTE!!!! This file is not used by the OCaml build of F* (i.e. the main one).
Instead, it uses an OCaml version ocaml/fstar-lib/FStar_Extraction_ML_PrintML,
so it can use OCaml's native pretty printers.
This file is here for the F# build. *)

let print (_: option string) (ext: string) (l: mllib) =
let newDoc = FStar.Extraction.ML.Code.doc_of_mllib l in
List.iter (fun (n,d) ->
Expand Down
15 changes: 15 additions & 0 deletions src/fstar.include
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
basic
class
data
extraction
fstar
parser
prettyprint
reflection
smtencoding
syntax
syntax/print
tactics
tosyntax
typechecker
tests

0 comments on commit 7392b89

Please sign in to comment.