File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -326,10 +326,14 @@ if (WIN32 AND NOT ANDROID AND NOT IOS)
326326 # unless _WIN32_WINNT is defined to this value (0x0600, Windows Vista).
327327 # Also set -DNOMINMAX for both Firestore and Firestore Core.
328328 set (FIREBASE_FIRESTORE_CPP_DEFINES ${FIREBASE_FIRESTORE_CPP_DEFINES} -D_WIN32_WINNT=0x0600 -DNOMINMAX)
329- target_compile_definitions (firestore_core
329+ # Special handling for the absl time zone library, define _LIBCPP_VERSION on
330+ # Windows to avoid the shenanigans they do with Windows mangled symbols to
331+ # accomplish weak linking. See
332+ # https://github.com/google/cctz/blob/master/src/zone_info_source.cc for a
333+ # look at what we're up against.
334+ target_compile_definitions (absl_time_zone
330335 PRIVATE
331- -DNOMINMAX
332- )
336+ _LIBCPP_VERSION=99)
333337endif ()
334338
335339target_compile_definitions (firebase_firestore
You can’t perform that action at this time.
0 commit comments