Failure to find linker for custom_target #786

tim-janik opened this Issue Sep 14, 2016 · 0 comments


None yet

1 participant


Meson failes to determine linker if multiple languages are used and a custom_target is the sole source file of a shared library:

== ==
project ('Showcase for custom_target source', ['c', 'cpp'])
Foo_cc = custom_target ('', command : [ 'touch', '@OUTPUT@' ], output : '')
Somelib = shared_library ('Somelib', [ Foo_cc ])

== build result ==
File "/tmp/meson/mesonbuild/backend/", line 290, in determine_linker
raise RuntimeError('Unreachable code')
RuntimeError: Unreachable code

@jpakkane jpakkane closed this in e23e5c4 Sep 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment