aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorLaurin-Luis Lehning <65224843+e820@users.noreply.github.com>2021-06-17 21:02:51 +0200
committerLaurin-Luis Lehning <65224843+e820@users.noreply.github.com>2021-06-21 09:15:13 +0200
commitc9ad98ef5ef8dd1931735f07015bf8ad199cd456 (patch)
tree1ab6dc7bb0e2f8c1ef43f60129f3b35039544d76 /test cases
parent2e8729a7e6cee460f8e75e231ecdd01933fbd277 (diff)
downloadmeson-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.build3
-rw-r--r--test cases/failing/115 required project arguments/test.json7
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\""
+ }
+ ]
+}