This is an automated email from the ASF dual-hosted git repository.
yangzhg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 724cf1cdb8 [chore][build] add instructions to build version string
(#14067)
724cf1cdb8 is described below
commit 724cf1cdb85a85ad09c36990aa9d3d653e4b0554
Author: Zhengguo Yang <[email protected]>
AuthorDate: Thu Nov 10 16:23:34 2022 +0800
[chore][build] add instructions to build version string (#14067)
---
be/src/util/debug_util.cpp | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/be/src/util/debug_util.cpp b/be/src/util/debug_util.cpp
index a917d6f6ab..936b32f0ff 100644
--- a/be/src/util/debug_util.cpp
+++ b/be/src/util/debug_util.cpp
@@ -55,6 +55,15 @@ std::string print_plan_node_type(const TPlanNodeType::type&
type) {
std::string get_build_version(bool compact) {
std::stringstream ss;
ss << DORIS_BUILD_VERSION
+#if defined(__x86_64__) || defined(_M_X64)
+#ifdef __AVX2__
+ << "(AVX2)"
+#else
+ << "(SSE4.2)"
+#endif
+#elif defined(__aarch64__)
+ << "(AArch64)"
+#endif
#ifdef NDEBUG
<< " RELEASE"
#else
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]