Skip to content

Commit bd67814

Browse files
committed
Fix building with asan on macOS
1 parent 40dbf7f commit bd67814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def init_env(
278278
if ccver >= (5, 0):
279279
df += ' -Og'
280280
float_conversion = '-Wfloat-conversion'
281-
fortify_source = '-D_FORTIFY_SOURCE=2'
281+
fortify_source = '' if sanitize and is_macos else '-D_FORTIFY_SOURCE=2'
282282
optimize = df if debug or sanitize else '-O3'
283283
sanitize_args = get_sanitize_args(cc, ccver) if sanitize else set()
284284
cppflags_ = os.environ.get(

0 commit comments

Comments
 (0)