[all-commits] [llvm/llvm-project] 7b67e9: [compiler-rt] Fix cross-compiling detection
Hau Hsu via All-commits
all-commits at lists.llvm.org
Wed Mar 29 22:17:56 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7b67e965d97aaa353185d17b5802eeaa28110c53
https://github.com/llvm/llvm-project/commit/7b67e965d97aaa353185d17b5802eeaa28110c53
Author: Hau Hsu <hau.hsu at sifive.com>
Date: 2023-03-30 (Thu, 30 Mar 2023)
Changed paths:
M compiler-rt/CMakeLists.txt
Log Message:
-----------
[compiler-rt] Fix cross-compiling detection
Previously the detection compares "CMAKE_SYSTEM_NAME" and
"CMAKE_TARGET_SYSTEM_NAME", which only contains OS names like "Linux".
This is not sufficient when cross-compiling for different target CPUs.
This patch uses CMAKE_CROSSCOMPILING, which sets automatically by CMake
when cross compiling.
Reviewed By: smeenai, phosek
Differential Revision: https://reviews.llvm.org/D147103
More information about the All-commits
mailing list