diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-03-25 16:38:24 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-25 16:38:24 -0700 |
commit | eb804cd405618ef78b772072685c39392aea4ac1 (patch) | |
tree | c86dd22ade3bf93d03d9ac01c507c6254c8fee7a /Makefile | |
parent | a68dfadae5e95c7f255cf38c9efdcbc2e36d1931 (diff) | |
parent | b9f5d0358d2e882d47f496c1a5589f6cebc25578 (diff) |
Merge branch 'ns/core-fsyncmethod'
Replace core.fsyncObjectFiles with two new configuration variables, core.fsync and core.fsyncMethod. * ns/core-fsyncmethod: core.fsync: documentation and user-friendly aggregate options core.fsync: new option to harden the index core.fsync: add configuration parsing core.fsync: introduce granular fsync control infrastructure core.fsyncmethod: add writeout-only mode wrapper: make inclusion of Windows csprng header tightly scoped
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile index 70f0a004e7..e8aba291d7 100644 --- a/Makefile +++ b/Makefile @@ -414,6 +414,8 @@ include shared.mak # # Define HAVE_CLOCK_MONOTONIC if your platform has CLOCK_MONOTONIC. # +# Define HAVE_SYNC_FILE_RANGE if your platform has sync_file_range. +# # Define NEEDS_LIBRT if your platform requires linking with librt (glibc version # before 2.17) for clock_gettime and CLOCK_MONOTONIC. # @@ -1918,6 +1920,10 @@ ifdef HAVE_CLOCK_MONOTONIC BASIC_CFLAGS += -DHAVE_CLOCK_MONOTONIC endif +ifdef HAVE_SYNC_FILE_RANGE + BASIC_CFLAGS += -DHAVE_SYNC_FILE_RANGE +endif + ifdef NEEDS_LIBRT EXTLIBS += -lrt endif |