mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove ASAN patch for bug in arch Qt. Thanks @eli-schwartz
This commit is contained in:
parent
fafcf3514e
commit
3dd9598139
@ -184,9 +184,7 @@ class Test(Command):
|
|||||||
def run(self, opts):
|
def run(self, opts):
|
||||||
if opts.under_sanitize and 'libasan' not in os.environ.get('LD_PRELOAD', ''):
|
if opts.under_sanitize and 'libasan' not in os.environ.get('LD_PRELOAD', ''):
|
||||||
os.environ['LD_PRELOAD'] = os.path.abspath(subprocess.check_output('gcc -print-file-name=libasan.so'.split()).decode('utf-8').strip())
|
os.environ['LD_PRELOAD'] = os.path.abspath(subprocess.check_output('gcc -print-file-name=libasan.so'.split()).decode('utf-8').strip())
|
||||||
# we ignore new_delete type mismatch as the patched version of Qt
|
os.environ['ASAN_OPTIONS'] = 'detect_leaks=0'
|
||||||
# used in Arch does that.
|
|
||||||
os.environ['ASAN_OPTIONS'] = 'detect_leaks=0:new_delete_type_mismatch=0'
|
|
||||||
self.info(f'Re-execing with LD_PRELOAD={os.environ["LD_PRELOAD"]}')
|
self.info(f'Re-execing with LD_PRELOAD={os.environ["LD_PRELOAD"]}')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
os.execl('setup.py', *sys.argv)
|
os.execl('setup.py', *sys.argv)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user