diff options
author | Laurin-Luis Lehning <65224843+e820@users.noreply.github.com> | 2021-06-17 21:02:51 +0200 |
---|---|---|
committer | Laurin-Luis Lehning <65224843+e820@users.noreply.github.com> | 2021-06-21 09:15:13 +0200 |
commit | c9ad98ef5ef8dd1931735f07015bf8ad199cd456 (patch) | |
tree | 1ab6dc7bb0e2f8c1ef43f60129f3b35039544d76 /test cases | |
parent | 2e8729a7e6cee460f8e75e231ecdd01933fbd277 (diff) | |
download | meson-c9ad98ef5ef8dd1931735f07015bf8ad199cd456.zip meson-c9ad98ef5ef8dd1931735f07015bf8ad199cd456.tar.gz meson-c9ad98ef5ef8dd1931735f07015bf8ad199cd456.tar.bz2 |
interprter: Add required kwarg to add_(project|global)_arguments
To avoid manual compiler support checks add_project_arguments and
add_global_arguments receive a new keyword argument to perform
them automatically.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/failing/115 required project arguments/meson.build | 3 | ||||
-rw-r--r-- | test cases/failing/115 required project arguments/test.json | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test cases/failing/115 required project arguments/meson.build b/test cases/failing/115 required project arguments/meson.build new file mode 100644 index 0000000..a871cdf --- /dev/null +++ b/test cases/failing/115 required project arguments/meson.build @@ -0,0 +1,3 @@ +project('add_project_arguments test', 'c') + +add_project_arguments('-meson-goober-arg-for-testing', language : 'c', required : true) diff --git a/test cases/failing/115 required project arguments/test.json b/test cases/failing/115 required project arguments/test.json new file mode 100644 index 0000000..e7e0c60 --- /dev/null +++ b/test cases/failing/115 required project arguments/test.json @@ -0,0 +1,7 @@ +{ + "stdout": [ + { + "line": "test cases/failing/115 required project arguments/meson.build:3:0: ERROR: C compiler does not support \"-meson-goober-arg-for-testing\"" + } + ] +} |