Skip to content

Commit 9eb69b9

Browse files
committed
Test: Fix fuzz-main build with debuggers disabled
1 parent a0e5fa5 commit 9eb69b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/platform/test/fuzz-main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ int main(int argc, char** argv) {
117117

118118
core->reset(core);
119119

120+
#ifdef ENABLE_DEBUGGERS
120121
struct mDebugger debugger;
121122
struct mDebuggerAccessLogger accessLog;
122123
bool hasDebugger = false;
@@ -133,6 +134,7 @@ int main(int argc, char** argv) {
133134
mDebuggerAccessLoggerStart(&accessLog);
134135
hasDebugger = true;
135136
}
137+
#endif
136138

137139
mArgumentsApplyFileLoads(&args, core);
138140

@@ -161,11 +163,13 @@ int main(int argc, char** argv) {
161163

162164
_fuzzRunloop(core, fuzzOpts.frames);
163165

166+
#ifdef ENABLE_DEBUGGERS
164167
if (hasDebugger) {
165168
core->detachDebugger(core);
166169
mDebuggerAccessLoggerDeinit(&accessLog);
167170
mDebuggerDeinit(&debugger);
168171
}
172+
#endif
169173

170174
core->unloadROM(core);
171175

0 commit comments

Comments
 (0)