Page MenuHomePhabricator

[Chronik] Fix `CARGO_BUILD_DIR`, incorrectly based on CMAKE_CURRENT_BINARY_DIR instead of CMAKE_BINARY_DIR
ClosedPublic

Authored by tobias_ruck on Aug 16 2022, 12:57.

Details

Summary

CARGO_BUILD_DIR is the path where the cxx crate generates the bridging sources.
We've incorrectly used CMAKE_CURRENT_BINARY_DIR instead of CMAKE_BINARY_DIR, and this fixes it.

Test Plan

ninja check-crates

Diff Detail

Repository
rABC Bitcoin ABC
Branch
chronik-fix-cargo_build_dir
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 19830
Build 39374: Build Diffbuild-chronik
Build 39373: arc lint + arc unit