Open Volker-Weissmann opened 3 years ago
This would be an error for any build system, I imagine. Granted, it would be preferable to error out during setup rather than during build.
I will note, however, that meson setup builddir --layout flat
actually works quite well here and is even intended for this use case. Although in the general case it tends to break if your targets clash rather than your directory layouts. ;)
This would be an error for any build system, I imagine.
Not if you do some name-mangeling. (Altough I'm not sure if this would be a good idea.)
Granted, it would be preferable to error out during setup rather than during build.
Absolutely.
meson setup builddir --layout flat actually works quite well here
The Problem is that --layout flat
is global, so if you have a nameclash in the flat layout somewhere else, you are stuck.
Not if you do some name-mangeling. (Altough I'm not sure if this would be a good idea.)
Probably not :) e.g. I'm highly dependent on the --layout mirror
to preserve directory hierarchy so that an application can run uninstalled from the build tree for testing.
The Problem is that
--layout flat
is global, so if you have a nameclash in the flat layout somewhere else, you are stuck.
I did mention that in the next sentence, yes.
@eli-schwartz is there any actionable thing here?
Describe the bug If a target has the same name as a sub directory, attempting to build will output
To Reproduce
Download bug.zip or create it as follows:
meson.build:
clash/meson.build:
main.cpp and lib.cpp are simple nearly empty, valid C++ files.
system parameters