From 2d308ea43c3afdf9cf681b91c86ae03d080e8a82 Mon Sep 17 00:00:00 2001 From: Yuan Date: Mon, 20 Jun 2022 15:06:46 +0800 Subject: [PATCH] set default codegen opt to O1 (#977) Signed-off-by: Yuan Zhou --- .../cpp/src/codegen/arrow_compute/ext/codegen_common.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ab40ff637..1d99cd435 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 @@ -628,7 +628,7 @@ arrow::Status CompileCodes(std::string codes, std::string signature) { } std::string env_jar = std::string(env_jar_); - std::string env_codegen_option = " -O3 -march=native "; + std::string env_codegen_option = " -O1 -march=native "; char* env_codegen_option_ = std::getenv("CODEGEN_OPTION"); if (env_codegen_option_ != nullptr) {