summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--INSTALL.md4
-rw-r--r--meson.build34
2 files changed, 22 insertions, 16 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 7109c35..903e680 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -39,6 +39,10 @@ Options can be set by passing C-style "define" options to `configure`:
meson configure -Dc_args="-march=native" -Dprefix="/opt/mypackage/"
+Note that some options, such as `strict` and `werror` are for
+developer/maintainer use only. Please don't file issues about anything that
+happens when they are enabled.
+
Building
--------
diff --git a/meson.build b/meson.build
index d6b6ca7..21dd704 100644
--- a/meson.build
+++ b/meson.build
@@ -215,23 +215,25 @@ threaded_tests = [
]
if not get_option('tests').disabled() and not meson.is_subproject()
- # Check release metadata
- autoship = find_program('autoship', required: false)
- if autoship.found()
- test('autoship', autoship,
- args: ['test', meson.current_source_dir()],
- suite: 'data')
- endif
+ if get_option('strict')
+ # Check release metadata
+ autoship = find_program('autoship', required: get_option('tests'))
+ if autoship.found()
+ test('autoship', autoship,
+ args: ['test', meson.current_source_dir()],
+ suite: 'data')
+ endif
- # Check licensing metadata
- reuse = find_program('reuse', required: get_option('tests'))
- if reuse.found()
- test(
- 'REUSE',
- reuse,
- args: ['--root', meson.current_source_dir(), 'lint'],
- suite: 'data',
- )
+ # Check licensing metadata
+ reuse = find_program('reuse', required: get_option('tests'))
+ if reuse.found()
+ test(
+ 'REUSE',
+ reuse,
+ args: ['--root', meson.current_source_dir(), 'lint'],
+ suite: 'data',
+ )
+ endif
endif
common_test_sources = files('test/failing_allocator.c')