diff options
Diffstat (limited to 'mesonbuild/backend/backends.py')
| -rw-r--r-- | mesonbuild/backend/backends.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index a960537a8..8a7887837 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -2078,9 +2078,8 @@ class Backend: Some backends don't support custom compilers. This is a convenience method to convert a Compiler to a Generator. ''' - exelist = compiler.get_exelist() - exe = programs.ExternalProgram(exelist[0]) - args = exelist[1:] + exe = programs.ExternalProgram(compiler.get_exe()) + args = compiler.get_exe_args() commands = self.compiler_to_generator_args(target, compiler) generator = build.Generator(exe, args + commands.to_native(), [output_templ], depfile='@PLAINNAME@.d', |
