Browse Source

preprocess ocaml sources via sedlex.ppx (#6926)

any %sedlex.regexp? needs to be preprocessed
to not to fail as Uninterpreted extension 'sedlex.regexp'
Douglas Mencken 7 years ago
parent
commit
5f817aae9f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Makefile

+ 3 - 1
Makefile

@@ -61,7 +61,9 @@ else
 	OCAMLDEP_FLAGS = -native
 endif
 
-CC_CMD = ($(COMPILER) $(ALL_CFLAGS) -c $< 2>tmp.tmp && $(MESSAGE_FILTER)) || ($(MESSAGE_FILTER) && exit 1)
+PPX_SEDLEX = $(shell ocamlfind printppx sedlex.ppx)
+
+CC_CMD = ($(COMPILER) $(PPX_SEDLEX) $(ALL_CFLAGS) -c $< 2>tmp.tmp && $(MESSAGE_FILTER)) || ($(MESSAGE_FILTER) && exit 1)
 
 # Meta information