Use correct host/target CMake variables to define lit variables.
authorTim Northover <Tim.Northover@arm.com>
Thu, 14 Feb 2013 16:49:32 +0000 (16:49 +0000)
committerTim Northover <Tim.Northover@arm.com>
Thu, 14 Feb 2013 16:49:32 +0000 (16:49 +0000)
commit6872de99b36e9e87a2d9fc0296a43b0f8d3648ab
treef82dcc5410491496e2401a8d90bc5d6dab55f9dd
parentad1b9dcb2c9f1a1a031ff5d026bd988999a54c4b
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
cmake/modules/AddLLVM.cmake