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 9d22ac5 + d2827dc commit 5a4d746Copy full SHA for 5a4d746
contrib/coccinelle/meson.build
@@ -1,4 +1,9 @@
1
-spatch = find_program('spatch', required: get_option('coccinelle'))
+coccinelle_opt = get_option('coccinelle').require(
2
+ fs.exists(meson.project_source_root() / '.git'),
3
+ error_message: 'coccinelle can only be run from a git checkout',
4
+)
5
+
6
+spatch = find_program('spatch', required: coccinelle_opt)
7
if not spatch.found()
8
subdir_done()
9
endif
0 commit comments