This is an automated email from the ASF dual-hosted git repository.
philo 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 ac1780a472 [VL] Restrict `-Wno-class-memaccess` flag to GNU compiler
(#11429)
ac1780a472 is described below
commit ac1780a47275c4bc08a7e698763628cda3c48b89
Author: Joey <[email protected]>
AuthorDate: Mon Jan 19 13:11:49 2026 +0800
[VL] Restrict `-Wno-class-memaccess` flag to GNU compiler (#11429)
---
cpp/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
index efb0e1a3d2..4fba7009e8 100644
--- a/cpp/CMakeLists.txt
+++ b/cpp/CMakeLists.txt
@@ -147,7 +147,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
add_compile_definitions(_GNU_SOURCE)
endif()
-if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
+if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-class-memaccess")
endif()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]