We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19bd1ec commit 299541aCopy full SHA for 299541a
pycheribuild/projects/build_qemu.py
@@ -315,6 +315,9 @@ def setup(self):
315
316
if self.config.create_compilation_db:
317
self.make_args.set(V=1) # Otherwise bear can't parse the compiler output
318
+ if self.use_asan:
319
+ # QEMU is not LeakSan clean, disable those checks.
320
+ self.make_args.set_env(UBSAN_OPTIONS="print_stacktrace=1,halt_on_error=1", ASAN_OPTIONS="detect_leaks=0")
321
ldflags = self.default_ldflags + self.LDFLAGS
322
if ldflags:
323
self.configure_args.append("--extra-ldflags=" + self.commandline_to_str(ldflags))
0 commit comments