aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyoyo Fujita <syoyo@lighttransport.com>2020-11-19 16:25:10 +0900
committerSyoyo Fujita <syoyo@lighttransport.com>2020-11-19 16:25:10 +0900
commit4f1099a341baa31a0e562d6e098c0014a0b2ee19 (patch)
tree692c0a465a2573a5684d661084fd50dc8ce23a6c
parenta40e9c2fa2b592993005a94d432a37601c5390db (diff)
downloadtinyobjloader-4f1099a341baa31a0e562d6e098c0014a0b2ee19.tar.gz
Make C++03 default for unit test build(for Travis CI)
-rw-r--r--tests/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Makefile b/tests/Makefile
index c670823..83d297d 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,10 +1,11 @@
.PHONY: clean
-CXX = clang++
+CXX ?= clang++
CXXFLAGS ?= -g -O1
+EXTRA_CXXFLAGS ?= -std=c++03 -fsanitize=address
tester: tester.cc ../tiny_obj_loader.h
- $(CXX) $(CXXFLAGS) -fsanitize=address -o tester tester.cc
+ $(CXX) $(CXXFLAGS) $(EXTRA_CXXFLAGS) -o tester tester.cc
all: tester