aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/d.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-04-28 14:30:52 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2019-04-28 14:33:22 +0200
commitc61ae46461bf9f4c7afef2381032ac0cb2d26043 (patch)
tree27d2dc7eb3dd4c7ade9a46b83a41541ea7936eab /mesonbuild/compilers/d.py
parent8a32fc8dbeb6d0fb5666f2af694d70fa6b575e03 (diff)
downloadmeson-c61ae46461bf9f4c7afef2381032ac0cb2d26043.zip
meson-c61ae46461bf9f4c7afef2381032ac0cb2d26043.tar.gz
meson-c61ae46461bf9f4c7afef2381032ac0cb2d26043.tar.bz2
Moved caching into a seperate function
Diffstat (limited to 'mesonbuild/compilers/d.py')
-rw-r--r--mesonbuild/compilers/d.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py
index a5f72d8..46cc054 100644
--- a/mesonbuild/compilers/d.py
+++ b/mesonbuild/compilers/d.py
@@ -326,7 +326,7 @@ class DCompiler(Compiler):
def compiles(self, code, env, *, extra_args=None, dependencies=None, mode='compile'):
args = self._get_compiler_check_args(env, extra_args, dependencies, mode)
- with self.compile(code, args, mode, cdata=env.coredata) as p:
+ with self.cached_compile(code, env.coredata, extra_args=args, mode=mode) as p:
return p.returncode == 0, p.cached
def has_multi_arguments(self, args, env):