This is an automated email from the ASF dual-hosted git repository.

felixybw pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new cbaa49591 [GLUTEN-5027][VL] Fail fast for unsupported compiler (#5030)
cbaa49591 is described below

commit cbaa495919e7e62b954a891a425cd89abed61f9c
Author: James Xu <[email protected]>
AuthorDate: Thu Mar 21 08:08:21 2024 +0800

    [GLUTEN-5027][VL] Fail fast for unsupported compiler (#5030)
    
    Currently when unsupported compiler is detected, the build is not failed, 
just a message is logged, causing strange errors thrown later. By fail fast, it 
gives user a clear message what is going on.
---
 cpp/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
index 4fe41a6d2..c63b1d51b 100644
--- a/cpp/CMakeLists.txt
+++ b/cpp/CMakeLists.txt
@@ -103,7 +103,7 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
   add_compile_options(-Wno-nullability-completeness)
   add_compile_options(-Wno-mismatched-tags)
 else()
-  message("Unsupported compiler ID: ${CMAKE_CXX_COMPILER_ID}")
+  message(FATAL_ERROR "Unsupported compiler ID: ${CMAKE_CXX_COMPILER_ID}")
 endif()
 
 # see https://issues.apache.org/jira/browse/ARROW-4665


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to