summaryrefslogtreecommitdiff
path: root/cmake/modules/AddLLVM.cmake
diff options
context:
space:
mode:
authorTim Northover <Tim.Northover@arm.com>2013-02-14 16:49:32 +0000
committerTim Northover <Tim.Northover@arm.com>2013-02-14 16:49:32 +0000
commit6872de99b36e9e87a2d9fc0296a43b0f8d3648ab (patch)
treef82dcc5410491496e2401a8d90bc5d6dab55f9dd /cmake/modules/AddLLVM.cmake
parentad1b9dcb2c9f1a1a031ff5d026bd988999a54c4b (diff)
downloadllvm-6872de99b36e9e87a2d9fc0296a43b0f8d3648ab.tar.gz
llvm-6872de99b36e9e87a2d9fc0296a43b0f8d3648ab.tar.bz2
llvm-6872de99b36e9e87a2d9fc0296a43b0f8d3648ab.tar.xz
Use correct host/target CMake variables to define lit variables.
CMake and autotools disagree on what "host" means in a cross-compilation context. Autotools (and lit) take it to be the machine the binaries being compiled now will run on. CMake takes it to be the machine actually compiling the binaries now. This change makes lit.site-cfg more consistent between autotools and CMake, allowing lit tests (particularly in ExecutionEngine) to run correctly when cross-compiled with CMake git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175179 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/AddLLVM.cmake')
-rwxr-xr-xcmake/modules/AddLLVM.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index bc7d0544e9..f0b31ce653 100755
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -246,8 +246,8 @@ function(configure_lit_site_cfg input output)
set(ENABLE_ASSERTIONS "0")
endif()
- set(HOST_OS ${CMAKE_HOST_SYSTEM_NAME})
- set(HOST_ARCH ${CMAKE_HOST_SYSTEM_PROCESSOR})
+ set(HOST_OS ${CMAKE_SYSTEM_NAME})
+ set(HOST_ARCH ${CMAKE_SYSTEM_PROCESSOR})
configure_file(${input} ${output} @ONLY)
endfunction()