diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-07-24 15:52:06 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-07-28 19:51:58 +0200 |
commit | 3dea817a597e4d2f10bfe3c1e006a0983555ad15 (patch) | |
tree | 55628052b6a5deeebc565a7f1b89cb2b86d3220c /test cases | |
parent | 18aff92d7a9f110cc3c790c61c2ced85b8d81a26 (diff) | |
download | meson-3dea817a597e4d2f10bfe3c1e006a0983555ad15.zip meson-3dea817a597e4d2f10bfe3c1e006a0983555ad15.tar.gz meson-3dea817a597e4d2f10bfe3c1e006a0983555ad15.tar.bz2 |
Only emit warning about "native:" on projects with minimum required version
'native:' keyword was only added in 0.54. For projects declaring
meson_version >= 0.54, warn, because those projects can and should set
the keyword. For older projects declaring support for older versions,
don't warn and use the default implicitly.
Fixes https://github.com/mesonbuild/meson/issues/6849.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/warning/2 languages missing native/meson.build | 3 | ||||
-rw-r--r-- | test cases/warning/2 languages missing native/test.json | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/test cases/warning/2 languages missing native/meson.build b/test cases/warning/2 languages missing native/meson.build index f4aa956..e204715 100644 --- a/test cases/warning/2 languages missing native/meson.build +++ b/test cases/warning/2 languages missing native/meson.build @@ -1,2 +1,3 @@ -project('languages missing native') +project('languages missing native', + meson_version : '>= 0.54') add_languages('c') diff --git a/test cases/warning/2 languages missing native/test.json b/test cases/warning/2 languages missing native/test.json index 36da0a7..f929654 100644 --- a/test cases/warning/2 languages missing native/test.json +++ b/test cases/warning/2 languages missing native/test.json @@ -1,7 +1,7 @@ { "stdout": [ { - "line": "test cases/warning/2 languages missing native/meson.build:2: WARNING: add_languages is missing native:, assuming languages are wanted for both host and build." + "line": "test cases/warning/2 languages missing native/meson.build:3: WARNING: add_languages is missing native:, assuming languages are wanted for both host and build." } ] } |