[test-suite] r369888 - [MemFunctions] Add c++11 flag.
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 26 02:58:51 PDT 2019
Author: courbet
Date: Mon Aug 26 02:58:51 2019
New Revision: 369888
URL: http://llvm.org/viewvc/llvm-project?rev=369888&view=rev
Log:
[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
Modified:
test-suite/trunk/MicroBenchmarks/MemFunctions/CMakeLists.txt
Modified: test-suite/trunk/MicroBenchmarks/MemFunctions/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MicroBenchmarks/MemFunctions/CMakeLists.txt?rev=369888&r1=369887&r2=369888&view=diff
==============================================================================
--- test-suite/trunk/MicroBenchmarks/MemFunctions/CMakeLists.txt (original)
+++ test-suite/trunk/MicroBenchmarks/MemFunctions/CMakeLists.txt Mon Aug 26 02:58:51 2019
@@ -1,3 +1,5 @@
+list(APPEND CPPFLAGS -std=c++11)
+
llvm_test_run(WORKDIR ${CMAKE_CURRENT_BINARY_DIR})
llvm_test_executable(MemFunctions main.cpp)
More information about the llvm-commits
mailing list