From 9c6ae66211485da8bf434e35dcd8a7e1cd30f73c Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 17 May 2015 19:01:50 +0300 Subject: A fix. --- backends.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backends.py') diff --git a/backends.py b/backends.py index def52db..e346898 100644 --- a/backends.py +++ b/backends.py @@ -53,6 +53,8 @@ class Backend(): for i in self.build.compilers: if i.can_compile(src): return i + if isinstance(src, mesonlib.File): + src = src.fname raise RuntimeError('No specified compiler can handle file ' + src) def get_target_filename(self, target): -- cgit v1.1