mirror of
https://github.com/git/git.git
synced 2026-01-11 18:45:28 +00:00
Merge branch 'es/meson-build-skip-coccinelle' into kn/meson-hdr-check
* es/meson-build-skip-coccinelle: meson: disable coccinelle configuration when building from a tarball
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
spatch = find_program('spatch', required: get_option('coccinelle'))
|
||||
coccinelle_opt = get_option('coccinelle').require(
|
||||
fs.exists(meson.project_source_root() / '.git'),
|
||||
error_message: 'coccinelle can only be run from a git checkout',
|
||||
)
|
||||
|
||||
spatch = find_program('spatch', required: coccinelle_opt)
|
||||
if not spatch.found()
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user