aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2019-08-26 09:58:51 +0000
committerClement Courbet <courbet@google.com>2019-08-26 09:58:51 +0000
commit5f757f79e427dc32519ca2ae12cfd79a0443deeb (patch)
tree0de1fa51bbc0a81ce9639d0a034ffc9ec7f4cd83
parente7f54f559cd76af0e1a587a98cae6ebe0fe38c44 (diff)
downloadtest-suite-5f757f79e427dc32519ca2ae12cfd79a0443deeb.tar.gz
[MemFunctions] Add c++11 flag.
We're using constexpr in the code, so this breaks in older systems. MicroBenchmarks/MemFunctions/main.cpp:34:10: error: unknown type name 'constexpr' static constexpr size_t kMaxBufSizeBytes = 4096; See https://reviews.llvm.org/D64082 git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@369888 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--MicroBenchmarks/MemFunctions/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/MicroBenchmarks/MemFunctions/CMakeLists.txt b/MicroBenchmarks/MemFunctions/CMakeLists.txt
index 6f08d856..93724068 100644
--- a/MicroBenchmarks/MemFunctions/CMakeLists.txt
+++ b/MicroBenchmarks/MemFunctions/CMakeLists.txt
@@ -1,3 +1,5 @@
+list(APPEND CPPFLAGS -std=c++11)
+
llvm_test_run(WORKDIR ${CMAKE_CURRENT_BINARY_DIR})
llvm_test_executable(MemFunctions main.cpp)