[PATCH] D98861: [CMAKE] Fix cross-compilation build
Vladislav Vinogradov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 18 06:01:56 PDT 2021
vinograd47 added a comment.
According to https://cmake.org/cmake/help/latest/command/try_run.html#behavior-when-cross-compiling:
If the `CMAKE_CROSSCOMPILING_EMULATOR` is not set, the `try_run` will create cache variables which must be filled by the user or by presetting them in some CMake script file to the values the executable would have produced if it had been run on its actual target platform. If the cache variables were not provided, CMake configuration fails with the following errors:
CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately:
errc_exit_code (advanced)
errc_exit_code__TRYRUN_OUTPUT (advanced)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98861/new/
https://reviews.llvm.org/D98861
More information about the llvm-commits
mailing list