[all-commits] [llvm/llvm-project] e3d73a: [clang-repl] Fix CMake errors when cross compiling
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Tue Jan 23 03:44:54 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e3d73ad58c41b945d9fc5d5fb16ea44850ccf652
https://github.com/llvm/llvm-project/commit/e3d73ad58c41b945d9fc5d5fb16ea44850ccf652
Author: Martin Storsjö <martin at martin.st>
Date: 2024-01-23 (Tue, 23 Jan 2024)
Changed paths:
M clang/tools/clang-repl/CMakeLists.txt
Log Message:
-----------
[clang-repl] Fix CMake errors when cross compiling
These stem from 4821c90c24d52d4a42990fd9371caedb157bc58b.
When cross compiling, CMAKE_SYSTEM_PROCESSOR is empty, if the
target processor hasn't been set when setting up the cross
compilation. Ideally, when setting up cross compilation with
CMake, the user is supposed to set CMAKE_SYSTEM_PROCESSOR, but
so far, compilation has worked just fine even without it.
Quote the string where CMAKE_SYSTEM_PROCESSOR is expanded, to
avoid argument errors when it expands to an empty string.
More information about the All-commits
mailing list