I'm running into a cross-compilation related issue with opam and dune.
Currently dune has a pretty good support for cross-compilation via findlib toolchains. It correctly separates compilation artefacts for different targets. When a findlib toolchain is used with -x TOOLCHAIN, dune, in addition to producing a PKG.intsall file for the default context, will also produce a PKG-TOOLCAHIN.install file. This works perfectly!
But, the problem is that opam doesn't know about these -TOOLCHAIN.install files and only looks for PKG.install files.
Is there a way to instruct opam install to look for additional install files described above? I'm looking for a solution that does not require changes to the original package.
Might be related to: #2476.