'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.pull/7494/head
parent
18aff92d7a
commit
3dea817a59
3 changed files with 8 additions and 4 deletions
@ -1,2 +1,3 @@ |
||||
project('languages missing native') |
||||
project('languages missing native', |
||||
meson_version : '>= 0.54') |
||||
add_languages('c') |
||||
|
@ -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." |
||||
} |
||||
] |
||||
} |
||||
|
Loading…
Reference in new issue