From 344c2d1eadc83b93a6d94e18c4b82782ec9a7ab0 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Wed, 6 Apr 2016 15:20:36 +0200 Subject: [PATCH] Fix the build Change-Id: I17bb89c51b1d4231a3cec3b91b453583e872d1b2 --- poincare/Makefile | 5 +++-- poincare/test/simplify_addition_integer.cpp | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/poincare/Makefile b/poincare/Makefile index 8257d9577..3e95d26b0 100644 --- a/poincare/Makefile +++ b/poincare/Makefile @@ -42,9 +42,10 @@ tests += $(addprefix poincare/test/,\ subtraction.cpp\ ) -# We won't use this very often but the linker should be smart enough to just -# remove it if we don't use it. +ifdef POINCARE_TESTS_PRINT_EXPRESSIONS tests += poincare/src/expression_debug.o +SFLAGS += -DPOINCARE_TESTS_PRINT_EXPRESSIONS=1 +endif # Even though flex and bison will generate both implementation and headers at # once, we don't declare it in the Makefile. If we did, "make -jN" with N>1 may diff --git a/poincare/test/simplify_addition_integer.cpp b/poincare/test/simplify_addition_integer.cpp index 724ec0d5b..4587bd423 100644 --- a/poincare/test/simplify_addition_integer.cpp +++ b/poincare/test/simplify_addition_integer.cpp @@ -2,8 +2,7 @@ #include #include -#define DUMP_EXPRESSIONS_TO_STD_OUT 1 -#if DUMP_EXPRESSIONS_TO_STD_OUT +#if POINCARE_TESTS_PRINT_EXPRESSIONS #include "../src/expression_debug.h" #include using namespace std;