File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,11 @@ def add_asan_flags(self):
180
180
self .configure_args .append ("--enable-sanitizers" )
181
181
# Ensure that tests crash on UBSan reports
182
182
self .COMMON_FLAGS .append ("-fno-sanitize-recover=all" )
183
+ # QEMU does not work with -fsanitize=function (which is the default since Clang 17)
184
+ # https://gitlab.com/qemu-project/qemu/-/issues/2345
185
+ compiler = self .get_compiler_info (self .CC )
186
+ if compiler .is_clang and compiler .version > (17 , 0 ):
187
+ self .COMMON_FLAGS .append ("-fno-sanitize=function" )
183
188
if self .use_lto :
184
189
self .info ("Disabling LTO for ASAN instrumented builds" )
185
190
self .use_lto = False
@@ -205,8 +210,6 @@ def setup(self):
205
210
if self .enable_plugins :
206
211
self .configure_args .append ("--enable-plugins" )
207
212
208
- # QEMU now builds with python3
209
- self .configure_args .append ("--python=" + sys .executable )
210
213
if self .build_type .is_debug :
211
214
self .configure_args .extend (["--enable-debug" , "--enable-debug-tcg" ])
212
215
else :
You can’t perform that action at this time.
0 commit comments