Add upstream flatcc option to avoid installing under the source tree #8867
Labels
actionable
Items in the backlog waiting for an appropriate impl/fix
module: build/install
Issues related to the cmake and buck2 builds, and to installing ExecuTorch
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
The
flatcc
third party library builds its libraries and executables directly into its source tree (under bin/ and lib/) instead of into the cmake output directory. This causes problems for us, because we need to be able to build both host and cross-compiled target versions of flatcc. But since they both are built to the same directory, they can overwrite each other.We have a hack at
executorch/devtools/CMakeLists.txt
Line 105 in 4f12131
@dbort sent dvidelabs/flatcc#306 to the upstream project, but there's been no further response for months.
db31f49 is the simplification change we'll be able to make to ET. And that hack didn't work all the time anyway (e.g., #7260), so with this we should be able to permanently avoid the environment-specific build race conditions we've run into.
cc @larryliu0820 @lucylq
The text was updated successfully, but these errors were encountered: