support sw_64 arch build

This commit is contained in:
wenxingsen
2022-05-16 11:20:47 +08:00
committed by wangzelin.wzl
parent addaaac260
commit 9175be1680
7 changed files with 74 additions and 12 deletions

View File

@ -40,6 +40,16 @@ else()
-Wno-psabi -Wno-sign-compare -Wno-unused-variable ${ARCH_COMPILE_OPTIONS}
$<$<COMPILE_LANGUAGE:C>:-Wno-old-style-declaration>
$<$<COMPILE_LANGUAGE:CXX>:-Wno-literal-suffix -Wno-invalid-offsetof>)
if(${ARCHITECTURE} STREQUAL "sw_64")
target_compile_options(oblib_base_base
INTERFACE
-Wno-type-limits -Wno-implicit-fallthrough -Wno-deprecated-declarations
-Wno-nonnull-compare -Wno-tautological-compare -Wno-extra -Wno-parentheses
-Wno-memset-elt-size -Wno-comment -Wno-int-in-bool-context -Wno-unused-but-set-parameter
-Wno-ignored-qualifiers -Wno-unused-but-set-variable -Wno-unused-value -Wno-format-truncation
$<$<COMPILE_LANGUAGE:CXX>:-Wno-class-memaccess -Wno-aligned-new>)
endif()
endif()
target_compile_features(oblib_base_base INTERFACE cxx_std_11)

View File

@ -15,6 +15,7 @@
#include "lib/utility/serialization.h"
#include "lib/ob_define.h"
#include "lib/worker.h"
#include "math.h"
namespace oceanbase {
namespace common {

View File

@ -460,7 +460,6 @@ private:
uint64_t new_val_entry_offset, uint64_t count, uint8_t var_type, int64_t st_pos,
ObJsonBuffer &result, ObJBVerType cur_vertype, ObJBVerType dest_vertype) const;
#define JB_PATH_NODE_LEN sizeof(struct ObJBNodeMeta)
void stack_update(ObJsonBuffer& stack, uint32_t idx, const ObJBNodeMeta& new_value);
int stack_copy(ObJsonBuffer& src, ObJsonBuffer& dst);
@ -519,4 +518,4 @@ public:
} // namespace common
} // namespace oceanbase
#endif // OCEANBASE_SQL_OB_JSON_BIN
#endif // OCEANBASE_SQL_OB_JSON_BIN