Skip to content

Commit b844f32

Browse files
committed
[Build] Update C++ standard to C++17 for AOT, iOS, VTA
Follow-up from apache#12337 and apache#12693, a few additional locations that specify C++14.
1 parent 5dcf622 commit b844f32

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

apps/ios_rpc/tvmrpc.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@
255255
ALWAYS_SEARCH_USER_PATHS = NO;
256256
CLANG_ANALYZER_NONNULL = YES;
257257
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
258-
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
258+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
259259
CLANG_CXX_LIBRARY = "libc++";
260260
CLANG_ENABLE_MODULES = YES;
261261
CLANG_ENABLE_OBJC_ARC = YES;
@@ -308,7 +308,7 @@
308308
ALWAYS_SEARCH_USER_PATHS = NO;
309309
CLANG_ANALYZER_NONNULL = YES;
310310
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
311-
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
311+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
312312
CLANG_CXX_LIBRARY = "libc++";
313313
CLANG_ENABLE_MODULES = YES;
314314
CLANG_ENABLE_OBJC_ARC = YES;

include/tvm/support/span.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace support {
3636
/*!
3737
* \brief A partial implementation of the C++20 std::span.
3838
*
39-
* At the time of writing, TVM must compile against C++14.
39+
* At the time of writing, TVM must compile against C++17.
4040
*/
4141
template <class T, class W>
4242
class Span {

tests/python/relay/aot/test_cpp_aot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def test_mobilenet(enable_usmp, target_kind):
138138

139139
temp_dir = tvm.contrib.utils.TempDirectory()
140140
test_so_path = temp_dir / "test.so"
141-
mod.export_library(test_so_path, cc="c++", options=["-std=gnu++14", "-g3", "-O0"])
141+
mod.export_library(test_so_path, cc="c++", options=["-std=gnu++17", "-g3", "-O0"])
142142
loaded_mod = tvm.runtime.load_module(test_so_path)
143143
runner = tvm.runtime.executor.AotModule(loaded_mod["default"](tvm.cpu(0)))
144144
runner.set_input(**inputs)

vta/python/vta/exec/rpc_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def reconfig_runtime(cfg_json):
106106
if pkg.same_config(old_cfg):
107107
logging.info("Skip reconfig_runtime due to same config.")
108108
return
109-
cflags = ["-O2", "-std=c++14"]
109+
cflags = ["-O2", "-std=c++17"]
110110
cflags += pkg.cflags
111111
ldflags = pkg.ldflags
112112
lib_name = dll_path

0 commit comments

Comments
 (0)