aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2017-06-28 08:32:52 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2017-06-29 11:02:44 -0400
commitba3871985a145ccd5aa92317cfd26b08966e8d6f (patch)
treeee57b81f728df6755ca274caadda42380f4f55bc /test cases
parent7ab774dee535ac2edba1426b103632b2d2d6e38a (diff)
downloadmeson-ba3871985a145ccd5aa92317cfd26b08966e8d6f.zip
meson-ba3871985a145ccd5aa92317cfd26b08966e8d6f.tar.gz
meson-ba3871985a145ccd5aa92317cfd26b08966e8d6f.tar.bz2
add_{project,global}_link_arguments require a 'language' argument
Commit 325a231a added stricter keyword argument checking, but didn't enable keyword arguments for add_projects_link_arguments() and add_global_link_arguments(). This makes them fail with this error: Meson encountered an error in file meson.build, line 19, column 0: Function does not take keyword arguments. However, the language argument is required. Removing it produces this error instead: Meson encountered an error in file meson.build, line 19, column 0: Missing language definition in add_project_link_arguments Fix this by adding 'language' as a required keyword argument. Also add calls to these in the "146 C and CPP link" test case.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/146 C and CPP link/meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/test cases/common/146 C and CPP link/meson.build b/test cases/common/146 C and CPP link/meson.build
index 583bd54..af40de7 100644
--- a/test cases/common/146 C and CPP link/meson.build
+++ b/test cases/common/146 C and CPP link/meson.build
@@ -14,6 +14,10 @@
project('C and C++ static link test', ['c', 'cpp'])
+# Verify that adding link arguments works.
+add_global_link_arguments('', language : 'c')
+add_project_link_arguments('', language : 'c')
+
libc = static_library('cfoo', ['foo.c', 'foo.h'])
# Test that linking C libs to external static C++ libs uses the C++ linker