提交 65d30fe3 编写于 作者: W wenxingsen 提交者: wangzelin.wzl

fix ob_error.cpp file requires at least 20g memory for release(-O2) compilation

fixed (#407)
上级 5baefa81
......@@ -311,6 +311,11 @@ print $fh_cpp '/**
#endif
using namespace oceanbase::common;
// fix ob_error.cpp file requires at least 20g memory for release(-O2) compilation
// it can be solved by introducing <iostream> header file temporarily
// TODO: it is clang11 bug, the specific reason to be further located
#include <iostream>
static const char *ERROR_NAME[OB_MAX_ERROR_CODE];
static const char *ERROR_CAUSE[OB_MAX_ERROR_CODE];
static const char *ERROR_SOLUTION[OB_MAX_ERROR_CODE];
......
......@@ -23,6 +23,11 @@
#endif
using namespace oceanbase::common;
// fix ob_error.cpp file requires at least 20g memory for release(-O2) compilation
// it can be solved by introducing <iostream> header file temporarily
// TODO: it is clang11 bug, the specific reason to be further located
#include <iostream>
static const char *ERROR_NAME[OB_MAX_ERROR_CODE];
static const char *ERROR_CAUSE[OB_MAX_ERROR_CODE];
static const char *ERROR_SOLUTION[OB_MAX_ERROR_CODE];
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册