Skip to content

Commit 967bc63

Browse files
Fix test builds on Linux, now for testing Windows builds.
1 parent 86d0dd2 commit 967bc63

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ endif
3232

3333
MAKEOVERRIDES+=DEBUG=$(DEBUG)
3434

35-
ifndef MXE
35+
ifdef MXE
36+
CPLUSPLUSOVERRIDE=
37+
else
3638
ifdef GCC
3739
COMPILER=g++
3840
else
@@ -47,13 +49,13 @@ LINK=$(COMPILER)
4749
endif
4850
export COMPILER
4951
export CPLUSPLUS=$(COMPILER)
50-
MAKEOVERRIDES+=CPLUSPLUS="$(COMPILER)"
52+
CPLUSPLUSOVERRIDE=CPLUSPLUS="$(COMPILER)"
5153
endif
5254

5355
ifneq ($(MAKECMDGOALS),clean)
5456
# make sure EcoLab is built first, even before starting to include Makefiles
5557
# disable AEGIS build here, as EcoLab 6 is still a little raw
56-
build_ecolab:=$(shell cd ecolab; if $(MAKE) $(MAKEOVERRIDES) AEGIS= $(JOBS) only-libs >build.log 2>&1; then echo "ecolab built"; fi)
58+
build_ecolab:=$(shell cd ecolab; if $(MAKE) $(MAKEOVERRIDES) $(CPLUSPLUSOVERRIDE) AEGIS= $(JOBS) only-libs >build.log 2>&1; then echo "ecolab built"; fi)
5759

5860
#$(warning $(build_ecolab))
5961
ifneq ($(build_ecolab),ecolab built)
@@ -487,7 +489,7 @@ $(warning $(CPLUSPLUS) , $(COMPILER))
487489

488490

489491
tests: $(EXES)
490-
cd test; $(MAKE) $(MAKEOVERRIDES)
492+
cd test; $(MAKE)
491493

492494
BASIC_CLEAN=rm -rf *.o *~ "\#*\#" core *.d *.cd *.rcd *.tcd *.xcd *.gcda *.gcno *.so *.dll *.dylib
493495

0 commit comments

Comments
 (0)