From 09945a18b511c58f0e69b5cf8100055bb9c041cf Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Wed, 12 Dec 2018 11:39:19 +0100 Subject: [PATCH] added example how to test with a cross-compiler --- tests/Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 2d25ffa..aed1c7d 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,14 +1,19 @@ -CXXFLAGS = -I.. -std=c++11 -W -Wall -Ofast -fno-exceptions -fno-rtti -march=native -CXX = clang++ -stdlib=libc++ -#CXX = g++ +CXXFLAGS = -I.. -std=c++11 -W -Wall -Ofast -fno-exceptions -fno-rtti + +CXX = clang++ -stdlib=libc++ -march=native + +#CXX = g++ -march=native + +#CXX = armv7a-hardfloat-linux-gnueabi-g++ -static -mfpu=neon -march=armv7-a +#QEMU = qemu-arm .PHONY: clean test tests := $(basename $(wildcard *_test.*)) test: $(tests) - $(patsubst %,./%>/dev/null;,$(tests)) + $(patsubst %,$(QEMU) ./% >/dev/null;,$(tests)) clean: rm -f *_test