Skip to content
Merged
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
19 changes: 14 additions & 5 deletions native/third_party/bloom_jolt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)

# ---------------------------------------------------------------------------
# JoltPhysics build options.
# Matches the "Distribution" flavour: no asserts, no profile, no debug renderer,
# interprocedural optimisation on. We keep object stream off — we don't use
# Jolt's scene serialisation (Bloom handles save/load itself).
# Matches the "Distribution" flavour: no asserts, no profile, no debug renderer.
# We keep object stream off — we don't use Jolt's scene serialisation (Bloom
# handles save/load itself).
#
# IPO is OFF because Rust's link step on Linux/GCC routes through rust-lld,
# which doesn't load gcc's lto-wrapper plugin. With IPO on, libJolt.a's archive
# members are GIMPLE bitcode and rust-lld leaves their implementations
# unresolved (undefined-symbol errors on JPH::Free, BodyManager locks, vtables,
# etc — see issue #44). Jolt is heavily inlined via its precompiled header
# already, so the perf delta from skipping LTO on the static archive is small.
# ---------------------------------------------------------------------------
set(INTERPROCEDURAL_OPTIMIZATION ON CACHE BOOL "" FORCE)
set(INTERPROCEDURAL_OPTIMIZATION OFF CACHE BOOL "" FORCE)
set(USE_STATIC_MSVC_RUNTIME_LIBRARY OFF CACHE BOOL "" FORCE)
set(TARGET_UNIT_TESTS OFF CACHE BOOL "" FORCE)
set(TARGET_HELLO_WORLD OFF CACHE BOOL "" FORCE)
Expand All @@ -21,8 +28,10 @@ set(TARGET_SAMPLES OFF CACHE BOOL "" FORCE)
set(TARGET_VIEWER OFF CACHE BOOL "" FORCE)
set(OBJECT_LAYER_BITS 16 CACHE STRING "" FORCE)
set(USE_ASSERTS OFF CACHE BOOL "" FORCE)
set(PROFILE_ENABLED OFF CACHE BOOL "" FORCE)
set(PROFILER_IN_DEBUG_AND_RELEASE OFF CACHE BOOL "" FORCE)
set(PROFILER_IN_DISTRIBUTION OFF CACHE BOOL "" FORCE)
set(DEBUG_RENDERER_IN_DEBUG_AND_RELEASE OFF CACHE BOOL "" FORCE)
set(DEBUG_RENDERER_IN_DISTRIBUTION OFF CACHE BOOL "" FORCE)
set(CROSS_PLATFORM_DETERMINISTIC OFF CACHE BOOL "" FORCE)
set(FLOATING_POINT_EXCEPTIONS_ENABLED OFF CACHE BOOL "" FORCE)
set(DOUBLE_PRECISION OFF CACHE BOOL "" FORCE)
Expand Down
Loading