Skip to content

Commit af28b27

Browse files
committed
Move openmp from -std=c++14 to -std=c++17
1 parent 06ff46d commit af28b27

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

openmp/cmake/HandleOpenMPOptions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ append_if(OPENMP_HAVE_WNO_EXTRA_FLAG "-Wno-extra" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
2929
append_if(OPENMP_HAVE_WNO_PEDANTIC_FLAG "-Wno-pedantic" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
3030
append_if(OPENMP_HAVE_WNO_MAYBE_UNINITIALIZED_FLAG "-Wno-maybe-uninitialized" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
3131

32-
append_if(OPENMP_HAVE_STD_CPP14_FLAG "-std=c++14" CMAKE_CXX_FLAGS)
32+
append_if(OPENMP_HAVE_STD_CPP14_FLAG "-std=c++17" CMAKE_CXX_FLAGS)

openmp/cmake/config-ix.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ check_cxx_compiler_flag(-Wno-extra OPENMP_HAVE_WNO_EXTRA_FLAG)
3030
check_cxx_compiler_flag(-Wno-pedantic OPENMP_HAVE_WNO_PEDANTIC_FLAG)
3131
check_cxx_compiler_flag(-Wno-maybe-uninitialized OPENMP_HAVE_WNO_MAYBE_UNINITIALIZED_FLAG)
3232

33-
check_cxx_compiler_flag(-std=c++14 OPENMP_HAVE_STD_CPP14_FLAG)
33+
check_cxx_compiler_flag(-std=c++17 OPENMP_HAVE_STD_CPP14_FLAG)

openmp/runtime/test/lit.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ config.substitutions.append(("%libomp-c99-compile-and-run", \
127127
config.substitutions.append(("%libomp-cxx-compile-and-run", \
128128
"%libomp-cxx-compile && %libomp-run"))
129129
config.substitutions.append(("%libomp-cxx-compile-c", \
130-
"%clangXX %openmp_flags %flags -std=c++14 -x c++ %s -o %t" + libs))
130+
"%clangXX %openmp_flags %flags -std=c++17 -x c++ %s -o %t" + libs))
131131
config.substitutions.append(("%libomp-cxx-compile", \
132-
"%clangXX %openmp_flags %flags -std=c++14 %s -o %t" + libs))
132+
"%clangXX %openmp_flags %flags -std=c++17 %s -o %t" + libs))
133133
config.substitutions.append(("%libomp-compile", \
134134
"%clang %openmp_flags %flags %s -o %t" + libs))
135135
config.substitutions.append(("%libomp-c99-compile", \

openmp/tools/archer/tests/lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ config.substitutions.append(("%libarcher-compile-and-run", \
105105
config.substitutions.append(("%libarcher-cxx-compile-and-run", \
106106
"%libarcher-cxx-compile && %libarcher-run"))
107107
config.substitutions.append(("%libarcher-cxx-compile", \
108-
"%clang-archerXX %openmp_flags %archer_flags %flags -std=c++14 %s -o %t" + libs))
108+
"%clang-archerXX %openmp_flags %archer_flags %flags -std=c++17 %s -o %t" + libs))
109109
config.substitutions.append(("%libarcher-compile", \
110110
"%clang-archer %openmp_flags %archer_flags %flags %s -o %t" + libs))
111111
config.substitutions.append(("%libarcher-run-race", "%suppression %deflake %t 2>&1 | tee %t.log"))

0 commit comments

Comments
 (0)