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

Already on GitHub? Sign in to your account

Failure to find linker for custom_target #786

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

Comments

Projects
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:

== 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 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