New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to find linker for custom_target #786

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


None yet
1 participant

tim-janik commented Sep 14, 2016

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 added a commit that referenced this issue Sep 18, 2016

@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