slfan1989 commented on code in PR #670:
URL: https://github.com/apache/iceberg-cpp/pull/670#discussion_r3285712753


##########
cmake_modules/IcebergThirdpartyToolchain.cmake:
##########
@@ -248,6 +248,11 @@ function(resolve_avro_dependency)
     set(AVRO_VENDORED TRUE)
     set_target_properties(avrocpp_s PROPERTIES OUTPUT_NAME 
"iceberg_vendored_avrocpp")
     set_target_properties(avrocpp_s PROPERTIES POSITION_INDEPENDENT_CODE ON)
+    if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
+      # Work around AppleClang 21 rejecting fmt's consteval format-string 
checks
+      # while compiling vendored avro-cpp in C++23 mode.
+      target_compile_definitions(avrocpp_s PUBLIC FMT_CONSTEVAL=)

Review Comment:
   That makes sense. The current failure happens while compiling avrocpp_s 
itself, so PRIVATE may be sufficient and would avoid leaking the workaround to 
downstream targets. I’ll try switching it to PRIVATE and let CI verify whether 
Iceberg sources still compile without inheriting FMT_CONSTEVAL=.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to