summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Malea <daniel.malea@intel.com>2013-04-23 17:48:06 +0000
committerDaniel Malea <daniel.malea@intel.com>2013-04-23 17:48:06 +0000
commit7a96af0627141d39c8ab99e7d4d990fd885d30ef (patch)
tree09cd62624d00bd1ecd4dd63bdc836f502a209bb8
parent31c0adc68c33665966d1821d0ff4ca24a6eec47b (diff)
downloadbcm5719-llvm-7a96af0627141d39c8ab99e7d4d990fd885d30ef.tar.gz
bcm5719-llvm-7a96af0627141d39c8ab99e7d4d990fd885d30ef.zip
Fix CheckPublicAPIHeaders test case
- LLDB C++ API requires C++11 - provide required -std=c++11 flag if none is specified llvm-svn: 180126
-rw-r--r--lldb/test/api/check_public_api_headers/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/test/api/check_public_api_headers/Makefile b/lldb/test/api/check_public_api_headers/Makefile
index d94e77c140b..0d5b4eb020e 100644
--- a/lldb/test/api/check_public_api_headers/Makefile
+++ b/lldb/test/api/check_public_api_headers/Makefile
@@ -9,6 +9,11 @@ else
LD_EXTRAS ?= $(LLDB_LIB_DIR)/liblldb.so
endif
+# If no c++ std was specified on CXXFLAGS, use c++11
+ifeq (,$(findstring -std=c++,$(CXXFLAGS)))
+ CFLAGS_EXTRAS := -std=c++11
+endif
+
# Example dictionary to pass to the Python build method:
#
# FRAMEWORK_INCLUDES=-F/Volumes/data/lldb/svn/trunk/build/Debug
OpenPOWER on IntegriCloud