Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions be/src/gen_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,15 @@ add_compile_options(-Wno-return-type)
# each other
add_library(DorisGen STATIC ${SRC_FILES})

if (COMPILER_CLANG)
if(CMAKE_CXX_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(DorisGen PRIVATE
-Wno-implicit-int-conversion
-Wno-shorten-64-to-32
-Wno-unused-variable
-Wno-sign-compare
-Wno-unused-function
-Wno-deprecated-declarations
-Wno-unused-parameter
-Wno-missing-field-initializers
-Wno-shorten-64-to-32
)
endif()

Expand Down
15 changes: 15 additions & 0 deletions cloud/src/gen-cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ set(SRC_FILES
# each other
add_library(CloudGen STATIC ${SRC_FILES})

if(CMAKE_CXX_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(CloudGen PRIVATE -Wno-error)

target_compile_options(CloudGen PRIVATE
-Wno-unused-variable
-Wno-sign-compare
-Wno-unused-function
-Wno-deprecated-declarations
-Wno-unused-parameter
-Wno-missing-field-initializers
-Wno-shorten-64-to-32
-Wno-implicit-int-conversion
)
endif()

# Setting these files as code-generated lets make clean and incremental builds
# work correctly
set_source_files_properties(${SRC_FILES} PROPERTIES GENERATED TRUE)
Loading