File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ ifeq ($(UNAME_S),Darwin)
10
10
LDFLAGS += -framework CoreFoundation -Wl,-ld_classic
11
11
endif
12
12
13
- bitcoinfuzz : $(OBJS ) cargo go
13
+ bitcoinfuzz : set $(OBJS ) cargo go
14
14
$(CXX ) fuzzer.cpp -o $@ $(OBJS ) $(CXXFLAGS ) $(LDFLAGS )
15
15
16
16
$(OBJS ) : build/% .o: % .cpp
31
31
clean :
32
32
rm -f bitcoinfuzz $(OBJS ) btcd_lib/libbtcd_wrapper.*
33
33
rm -Rdf rust_bitcoin_lib/target
34
+
35
+ set :
36
+ @$(if $(strip $(BTCD ) ) , cd dependencies/btcd && git fetch origin master && git checkout $(BTCD ) )
37
+ @$(if $(strip $(RUST_BITCOIN ) ) , cd dependencies/rust-bitcoin && git fetch origin master && git checkout $(RUST_BITCOIN ) )
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ Now, you can build the project by running:
24
24
make
25
25
```
26
26
27
+ It is also possible to target a specific commit or tag of the dependencies during compilation:
28
+
29
+ ``` bash
30
+ make BTCD=v0.24.0 RUST_BITCOIN=aedb097
31
+ ```
32
+
27
33
Once the compilation is complete bitcoinfuzz can be executed by:
28
34
29
35
``` bash
@@ -35,5 +41,5 @@ FUZZ=target_name ./bitcoinfuzz
35
41
36
42
- sipa/miniscript: https://github.com/sipa/miniscript/issues/140
37
43
- rust-miniscript: https://github.com/rust-bitcoin/rust-miniscript/issues/633
38
- - rust-bitcoin: https://github.com/rust-bitcoin/rust-bitcoin/issues/268
44
+ - rust-bitcoin: https://github.com/rust-bitcoin/rust-bitcoin/issues/2681
39
45
- btcd: https://github.com/btcsuite/btcd/issues/2195
You can’t perform that action at this time.
0 commit comments