Print a useful error when unable to determine linker

pull/938/head
Nirbheek Chauhan 8 years ago
parent d59f5f8620
commit 93035fd112
  1. 2
      mesonbuild/backend/backends.py

@ -278,7 +278,7 @@ class Backend():
for s in src:
if c.can_compile(s):
return c
raise RuntimeError('Unreachable code')
raise AssertionError("BUG: Couldn't determine linker for sources {!r}".format(src))
def object_filename_from_source(self, target, source):
return source.fname.replace('/', '_').replace('\\', '_') + '.' + self.environment.get_object_suffix()

Loading…
Cancel
Save