File tree 1 file changed +8
-4
lines changed 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,10 @@ option(BUILD_BENCH "Build bench_bitcoin executable." ON)
75
75
cmake_dependent_option(BUILD_FUZZ_BINARY "Build fuzz binary." ON "NOT MSVC" OFF )
76
76
cmake_dependent_option(FUZZ "Build for fuzzing. Enabling this will disable all other targets and override BUILD_FUZZ_BINARY." OFF "NOT MSVC" OFF )
77
77
78
+ # The core_interface library aims to encapsulate common build flags.
79
+ # It is intended to be a usage requirement for all other targets.
80
+ add_library (core_interface INTERFACE )
81
+
78
82
if (FUZZ)
79
83
message (WARNING "FUZZ=ON will disable all other targets and force BUILD_FUZZ_BINARY=ON." )
80
84
set (BUILD_DAEMON OFF )
@@ -91,6 +95,10 @@ if(FUZZ)
91
95
set (BUILD_TESTS OFF )
92
96
set (BUILD_BENCH OFF )
93
97
set (BUILD_FUZZ_BINARY ON )
98
+
99
+ target_compile_definitions (core_interface INTERFACE
100
+ ABORT_ON_FAILED_ASSUME
101
+ )
94
102
endif ()
95
103
96
104
option (INSTALL_MAN "Install man pages." ON )
@@ -108,10 +116,6 @@ elseif(NOT WIN32)
108
116
endif ()
109
117
unset (check_pie_output)
110
118
111
- # The core_interface library aims to encapsulate common build flags.
112
- # It is intended to be a usage requirement for all other targets.
113
- add_library (core_interface INTERFACE )
114
-
115
119
include (TryAppendCXXFlags)
116
120
include (TryAppendLinkerFlag)
117
121
You can’t perform that action at this time.
0 commit comments