Skip to content

Commit

Permalink
Fix non-Android errors.
Browse files Browse the repository at this point in the history
This is a bit dodgy, because our modified Abseil is now pretending to be
the real deal. But I haven't worked out how to fix that without
introducing linker errors yet.
  • Loading branch information
kring committed Nov 6, 2024
1 parent 76e73fa commit e2411f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Source/CesiumRuntime/Private/Tests/CesiumTestHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ template <typename T> T* findInPlay(T* pEditorObject) {
if (!pPlayOwner)
return nullptr;
return getComponentWithTag<T>(pPlayOwner, getUniqueTag(pEditorObject));
} else {
return nullptr;
}

return nullptr;
}

/// <summary>
Expand Down
6 changes: 3 additions & 3 deletions extern/vcpkg-overlays/abseil/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
endif()

# Don't let our customized version of Abseil pose as the real thing.
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/absl/base/options.h" "ABSL_OPTION_INLINE_NAMESPACE_NAME lts_20240722" "ABSL_OPTION_INLINE_NAMESPACE_NAME lts_20240722_cesium_for_unreal")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/absl/base/config.h" "#define ABSL_LTS_RELEASE_VERSION 20240722" "//#define ABSL_LTS_RELEASE_VERSION 20240722")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/absl/base/config.h" "#define ABSL_LTS_RELEASE_PATCH_LEVEL 0" "//#define ABSL_LTS_RELEASE_PATCH_LEVEL 0")
# vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/absl/base/options.h" "ABSL_OPTION_INLINE_NAMESPACE_NAME lts_20240722" "ABSL_OPTION_INLINE_NAMESPACE_NAME lts_20240722_cesium_for_unreal")
# vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/absl/base/config.h" "#define ABSL_LTS_RELEASE_VERSION 20240722" "//#define ABSL_LTS_RELEASE_VERSION 20240722")
# vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/absl/base/config.h" "#define ABSL_LTS_RELEASE_PATCH_LEVEL 0" "//#define ABSL_LTS_RELEASE_PATCH_LEVEL 0")

# Apply this patch to fix C++20 build with Android NDK r25
# https://github.com/abseil/abseil-cpp/pull/1728
Expand Down

0 comments on commit e2411f7

Please sign in to comment.