Skip to content

Commit a8c8a8b

Browse files
authored
bitcoin-core: Adjust built target directory (#13130)
Required after bitcoin/bitcoin#31161.
1 parent a41d3ee commit a8c8a8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/bitcoin-core/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ cmake -B build_fuzz \
7676

7777
cmake --build build_fuzz -j$(nproc)
7878

79-
WRITE_ALL_FUZZ_TARGETS_AND_ABORT="/tmp/a" "./build_fuzz/src/test/fuzz/fuzz" || true
79+
WRITE_ALL_FUZZ_TARGETS_AND_ABORT="/tmp/a" "./build_fuzz/bin/fuzz" || true
8080
readarray FUZZ_TARGETS < "/tmp/a"
8181
if [ -n "${OSS_FUZZ_CI-}" ]; then
8282
# When running in CI, check the first targets only to save time and disk space
@@ -97,7 +97,7 @@ cmake --build build_fuzz -j$(nproc)
9797
# Replace the magic string with the actual name of each fuzz target
9898
for fuzz_target in ${FUZZ_TARGETS[@]}; do
9999
df --human-readable ./src
100-
python3 -c "c_str_target=b\"${fuzz_target}\x00\";c_str_magic=b\"$MAGIC_STR\";dat=open('./build_fuzz/src/test/fuzz/fuzz','rb').read();dat=dat.replace(c_str_magic, c_str_target+c_str_magic[len(c_str_target):]);open(\"$OUT/$fuzz_target\",'wb').write(dat)"
100+
python3 -c "c_str_target=b\"${fuzz_target}\x00\";c_str_magic=b\"$MAGIC_STR\";dat=open('./build_fuzz/bin/fuzz','rb').read();dat=dat.replace(c_str_magic, c_str_target+c_str_magic[len(c_str_target):]);open(\"$OUT/$fuzz_target\",'wb').write(dat)"
101101

102102
chmod +x "$OUT/$fuzz_target"
103103
(

0 commit comments

Comments
 (0)