You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/10/24 14:33:32 UTC

[GitHub] [doris] adonis0147 commented on a diff in pull request #13607: [fix](thirdparty) g++-11: error: unrecognized command-line option '-m…

adonis0147 commented on code in PR #13607:
URL: https://github.com/apache/doris/pull/13607#discussion_r1003389550


##########
thirdparty/build-thirdparty.sh:
##########
@@ -1345,8 +1345,13 @@ build_hdfs3() {
     cd "${BUILD_DIR}"
     rm -rf ./*
 
+    if [[ "$(uname -m)" == "aarch64" ]]; then
+        SSE_OPTION='-DENABLE_SSE=OFF'
+    else
+        SSE_OPTION='-DENABLE_SSE=ON'
+    fi

Review Comment:
   ```suggestion
       if [[ "$(uname -m)" != 'x86_64' ]]; then
           SSE_OPTION='ON'
       else
           SSE_OPTION='OFF'
       fi
   ```
   
   It is better to use `x86_64` to compare to the result due to the result of `uname -m` is `arm64` on macOS M1.
   
   BTW, it seems that the compiler just complains the unrecognized option and continues. The error doesn't interrupt the compilation.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org