From 7f148c188efcefd816ab299aa65526207ea05c8f Mon Sep 17 00:00:00 2001 From: WingC <1018957763@qq.com> Date: Mon, 6 Jan 2020 00:46:07 -0600 Subject: [PATCH] [Build]Make set target arch universal (#2660) --- be/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/be/CMakeLists.txt b/be/CMakeLists.txt index 5a82572c8c..29f2f82398 100644 --- a/be/CMakeLists.txt +++ b/be/CMakeLists.txt @@ -40,7 +40,8 @@ string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE) message(STATUS "Build type is ${CMAKE_BUILD_TYPE}") # set CMAKE_BUILD_TARGET_ARCH -execute_process(COMMAND bash "-c" "lscpu | grep 'Architecture' | awk '{print $2}'" +# use `lscpu | grep 'Architecture' | awk '{print $2}'` only support system which language is en_US.UTF-8 +execute_process(COMMAND bash "-c" "uname -m" OUTPUT_VARIABLE CMAKE_BUILD_TARGET_ARCH OUTPUT_STRIP_TRAILING_WHITESPACE)