When building the default builtin and runtimes target, set the
CMAKE_SYSTEM_NAME to the current one. This is not necessary on
Linux and Darwin, but it appears to be necessary on Windows,
otherwise CMake fails.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Hello Petr,
these changes break the Windows to ARM Linux cross builders:
http://lab.llvm.org:8011/builders/llvm-clang-win-x-armv7l/builds/4166
http://lab.llvm.org:8011/builders/llvm-clang-win-x-aarch64/builds/4144
We pass a proper CMAKE_SYSTEM_NAME for the target build through BUILTINS_CMAKE_ARGS and RUNTIMES_CMAKE_ARGS variables, such as
set(BUILTINS_CMAKE_ARGS "-DCMAKE_SYSTEM_NAME=Linux" CACHE STRING "") set(RUNTIMES_CMAKE_ARGS "-DCMAKE_SYSTEM_NAME=Linux" CACHE STRING "")
(see clang/cmake/caches/CrossWinToARMLinux.cmake for details)
Your change pass a host system name that is Windows in our case and it is incorrect for the build target.
Is there a way to pass a proper system name in that case?