aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/compilers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py
index 31cafa6..9b6ad8c 100644
--- a/mesonbuild/compilers.py
+++ b/mesonbuild/compilers.py
@@ -980,7 +980,7 @@ int main(int argc, char **argv) {
templ = head + stubs_fail + main
args = extra_args + self.get_compiler_check_args()
- if self.links(templ.format(prefix, funcname), env, extra_args, dependencies):
+ if self.links(templ.format(prefix, funcname), env, args, dependencies):
return True
# Some functions like alloca() are defined as compiler built-ins which
# are inlined by the compiler, so test for that instead. Built-ins are