LLVM cross-compilation cmake issues

I'm an idiot and sent to llvm-commits instead of llvm-dev. Fixing.

CROSS_TOOLCHAIN_FLAGS_NATIVE can be used to pass CMake variables when building the native tools. What I do is set up a toolchain file:

set(CMAKE_C_COMPILER {host-cc})
set(CMAKE_CXX_COMPILER {host-cxx})

And pass this to the top level CMake:

-DCROSS_TOOLCHAIN_FLAGS_NATIVE=“-DCMAKE_TOOLCHAIN_FILE=”

CMAKE_C_COMPILER etc can instead be directly set in this flag (instead of a toolchain file):

That will work well for me. Thank you!