mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
added example how to test with a cross-compiler
This commit is contained in:
parent
bede1046d6
commit
09945a18b5
1 changed files with 9 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue