Skip to content

Commit 881eb99

Browse files
committed
Merge branch 'repro'
2 parents d965993 + 3221b9c commit 881eb99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ if(CMAKE_BUILD_TYPE STREQUAL "DEBUG")
239239
else()
240240
set(RUST_PROFILE "release")
241241
set(RUST_CARGO_FLAG "--release")
242-
set(RUSTFLAGS --remap-path-prefix=${CMAKE_CURRENT_SOURCE_DIR}/rust=src)
242+
# For binary reproducibility, strip path prefixes that can be different depending on environment (e.g. /home/<user>, etc.).
243+
set(RUSTFLAGS "--remap-path-prefix=${CMAKE_CURRENT_SOURCE_DIR}/rust=src --remap-path-prefix=$ENV{HOME}=")
243244
endif()
244245

245246
if(CMAKE_CROSSCOMPILING)

0 commit comments

Comments
 (0)