diff --git a/native-sql-engine/cpp/src/CMakeLists.txt b/native-sql-engine/cpp/src/CMakeLists.txt index da7540651..df7a1ec20 100644 --- a/native-sql-engine/cpp/src/CMakeLists.txt +++ b/native-sql-engine/cpp/src/CMakeLists.txt @@ -7,7 +7,7 @@ include(FindPkgConfig) include(GNUInstallDirs) include(CheckCXXCompilerFlag) -set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) diff --git a/native-sql-engine/cpp/src/codegen/arrow_compute/ext/codegen_common.cc b/native-sql-engine/cpp/src/codegen/arrow_compute/ext/codegen_common.cc index 1d99cd435..302950a4f 100644 --- a/native-sql-engine/cpp/src/codegen/arrow_compute/ext/codegen_common.cc +++ b/native-sql-engine/cpp/src/codegen/arrow_compute/ext/codegen_common.cc @@ -657,7 +657,7 @@ arrow::Status CompileCodes(std::string codes, std::string signature) { struct stat pch_stat; auto ret = stat(libwscg_pch.c_str(), &pch_stat); if (ret == -1) { - cmd += env_gcc + " -std=c++14 -Wno-deprecated-declarations " + arrow_header + + cmd += env_gcc + " -std=c++17 -Wno-deprecated-declarations " + arrow_header + arrow_lib + arrow_lib2 + nativesql_header + nativesql_header_2 + " -c " + libwscgfile + env_codegen_option + " -fPIC && "; }