Failure to find linker for custom_target #786

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

Projects

None yet

1 participant

@tim-janik

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

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

== build result ==
File "/tmp/meson/mesonbuild/backend/backends.py", 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