Merge "Fix the build"

This commit is contained in:
Félix Raimundo
2016-04-07 12:43:53 +02:00
committed by Gerrit
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -2,8 +2,7 @@
#include <poincare.h>
#include <assert.h>
#define DUMP_EXPRESSIONS_TO_STD_OUT 1
#if DUMP_EXPRESSIONS_TO_STD_OUT
#if POINCARE_TESTS_PRINT_EXPRESSIONS
#include "../src/expression_debug.h"
#include <iostream>
using namespace std;