Skip to content

Commit e8f879e

Browse files
committed
Use LSAN_OPTIONS instead of ASAN_OPTIONS in mkmf
Newer versions of clang's LSAN uses LSAN_OPTIONS environment variable instead of ASAN_OPTIONS.
1 parent 77331b9 commit e8f879e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mkmf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def expand_command(commands, envs = libpath_env)
419419

420420
# disable ASAN leak reporting - conftest programs almost always don't bother
421421
# to free their memory.
422-
envs['ASAN_OPTIONS'] = "detect_leaks=0" unless ENV.key?('ASAN_OPTIONS')
422+
envs['LSAN_OPTIONS'] = "detect_leaks=0" unless ENV.key?('LSAN_OPTIONS')
423423

424424
return envs, expand[commands]
425425
end

0 commit comments

Comments
 (0)