mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix build with asan
This commit is contained in:
parent
6534a2b092
commit
4e43dd975f
@ -272,8 +272,7 @@ def init_env(debug=False, sanitize=False, compiling_for='native'):
|
||||
ldflags += base_ldflags
|
||||
cflags += ['-fvisibility=hidden']
|
||||
if sanitize:
|
||||
cflags.append('-fsanitize-address')
|
||||
ldflags.append('-shared-libasan')
|
||||
cflags.append('-fsanitize=address')
|
||||
|
||||
if islinux:
|
||||
cflags.append('-pthread')
|
||||
|
Loading…
x
Reference in New Issue
Block a user