From e5ed96798ba3984499527078bfebdcdf5bad87e4 Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Wed, 22 May 2019 19:10:10 +0200 Subject: [PATCH] fix(tests/playground/Makefile): actually compile Lean code with optimizations --- tests/playground/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/playground/Makefile b/tests/playground/Makefile index c4fcd83aa7..1a48cb7ca4 100644 --- a/tests/playground/Makefile +++ b/tests/playground/Makefile @@ -6,6 +6,7 @@ CROSS_CATS = .lean .lean.perf .hs .gc.hs .hs.perf .llvm.hs .ml .gc.ml .ml.perf TIME_CATS = .lean .hs .llvm.hs .ml RETIRED_CATS = .gcc.lean .flambda.ml +LEANC_FLAGS = -O3 GHC_FLAGS = -O3 OCAML_FLAGS = -O3 @@ -30,7 +31,7 @@ all: reports report_cross.csv %.lean.cpp: %.lean $(LEAN_BIN)/lean --cpp=$@ $< %.lean.out: %.lean.cpp - $(LEAN_BIN)/leanc -o $@ $< + $(LEAN_BIN)/leanc $(LEANC_FLAGS) -o $@ $< # Binaries x.lean.out and x.gcc.lean.out etc. are produced by the # same rules and x.lean source file by copying the latter to # x.gcc.lean. This also avoids conflicts between intermediate