summaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-11-12 10:05:11 -0800
committerDylan Baker <dylan@pnwbakers.com>2025-11-19 10:48:48 -0800
commit0e6fd84db2299b45d9abbe42cb461fa7e49b27c3 (patch)
tree5c33b2030593ada2b55d26e5fa48852ad89bc621 /mesonbuild/build.py
parent198156295899ddb5e9c91f1c889d50f27e8a7692 (diff)
downloadmeson-0e6fd84db2299b45d9abbe42cb461fa7e49b27c3.tar.gz
compilers: Remove Environment parameter from Compiler.get_language_stdlib_only_link_flags
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 7562fea53..138f1ae03 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -1665,7 +1665,7 @@ class BuildTarget(Target):
# If the user set the link_language, just return that.
if self.link_language:
comp = self.all_compilers[self.link_language]
- return comp, comp.language_stdlib_only_link_flags(self.environment)
+ return comp, comp.language_stdlib_only_link_flags()
# Since dependencies could come from subprojects, they could have
# languages we don't have in self.all_compilers. Use the global list of
@@ -1695,7 +1695,7 @@ class BuildTarget(Target):
for l in clink_langs:
try:
comp = self.all_compilers[l]
- return comp, comp.language_stdlib_only_link_flags(self.environment)
+ return comp, comp.language_stdlib_only_link_flags()
except KeyError:
pass
@@ -1710,7 +1710,7 @@ class BuildTarget(Target):
# We need to use all_compilers here because
# get_langs_used_by_deps could return a language from a
# subproject
- stdlib_args.extend(all_compilers[dl].language_stdlib_only_link_flags(self.environment))
+ stdlib_args.extend(all_compilers[dl].language_stdlib_only_link_flags())
return stdlib_args
def uses_rust(self) -> bool: