mirror of
https://github.com/git/git.git
synced 2026-06-24 08:48:31 +00:00
Merge branch 'dk/meson-enable-use-nsec-build' into jch
The USE_NSEC build knob, which enables support for sub-second file timestamp resolution, has been wired up to the Meson build system. * dk/meson-enable-use-nsec-build: meson: wire up USE_NSEC build knob
This commit is contained in:
@@ -840,6 +840,10 @@ if help_format_opt != 'man'
|
||||
libgit_c_args += '-DDEFAULT_HELP_FORMAT="' + help_format_opt + '"'
|
||||
endif
|
||||
|
||||
if get_option('nanosec')
|
||||
libgit_c_args += '-DUSE_NSEC'
|
||||
endif
|
||||
|
||||
libgit_include_directories = [ '.' ]
|
||||
libgit_dependencies = [ ]
|
||||
|
||||
|
||||
@@ -21,6 +21,8 @@ option('runtime_prefix', type: 'boolean', value: false,
|
||||
description: 'Resolve ancillary tooling and support files relative to the location of the runtime binary instead of hard-coding them into the binary.')
|
||||
option('sane_tool_path', type: 'array', value: [],
|
||||
description: 'An array of paths to pick up tools from in case the normal tools are broken or lacking.')
|
||||
option('nanosec', type: 'boolean', value: false,
|
||||
description: 'Care about sub-second file mtimes and ctimes.')
|
||||
|
||||
# Build information compiled into Git and other parts like documentation.
|
||||
option('build_date', type: 'string', value: '',
|
||||
|
||||
Reference in New Issue
Block a user