We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b5f5e0 + 8b60350 commit 133bf92Copy full SHA for 133bf92
meson.build
@@ -1413,12 +1413,18 @@ if host_machine.system() == 'windows'
1413
libgit_c_args += '-DUSE_WIN32_MMAP'
1414
else
1415
checkfuncs += {
1416
- 'mmap' : ['mmap.c'],
1417
# provided by compat/mingw.c.
1418
'unsetenv' : ['unsetenv.c'],
1419
1420
'getpagesize' : [],
1421
}
+
1422
+ if get_option('b_sanitize').contains('address')
1423
+ libgit_c_args += '-DNO_MMAP'
1424
+ libgit_sources += 'compat/mmap.c'
1425
+ else
1426
+ checkfuncs += { 'mmap': ['mmap.c'] }
1427
+ endif
1428
endif
1429
1430
foreach func, impls : checkfuncs
0 commit comments