Skip to content
Snippets Groups Projects
Commit 1775e4aa authored by Alan Schmitt's avatar Alan Schmitt
Browse files

support for logging argument

parent e882e0e3
No related branches found
No related tags found
No related merge requests found
...@@ -50,9 +50,12 @@ tests/jsref/%.ml: ...@@ -50,9 +50,12 @@ tests/jsref/%.ml:
tests/%.ml.d: tests/%.ml tests/%.ml.d: tests/%.ml
$(OCAMLDEP) -I $(<D) $< | $(DEPSED) > $@ $(OCAMLDEP) -I $(<D) $< | $(DEPSED) > $@
tests/%.cmi tests/%.log.js tests/%.unlog.js: tests/%.ml main.byte stdlib tests/%.cmi tests/%.unlog.js: tests/%.ml main.byte stdlib
./main.byte -I $(<D) $< ./main.byte -I $(<D) $<
tests/%.log.js: tests/%.ml tests/%.cmi main.byte stdlib
./main.byte -I $(<D) -log $<
tests: $(ML_TESTS:.ml=.log.js) tests: $(ML_TESTS:.ml=.log.js)
tests/lambda: tests/lambda/Lambda.log.js tests/lambda: tests/lambda/Lambda.log.js
......
open Params
open Asttypes open Asttypes
open Attributes open Attributes
open Log open Log
...@@ -246,7 +247,7 @@ type generate_mode = ...@@ -246,7 +247,7 @@ type generate_mode =
| Mode_line_token | Mode_line_token
| Mode_logged | Mode_logged
let current_mode = Mode_unlogged let current_mode = if !logging then Mode_logged else Mode_unlogged
(****************************************************************) (****************************************************************)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment