This patch changes the libc++ CMake so that it adds certain target flags like '-m32' or '--gcc-toolchain' before including config-ix.cmake.
Since these flags can affect things like check_library_exists([...]) they needed to be added before the tests are performed.
This patch fixes:
This is missing the `='. As much as I like the separate arguments, it does cause a difference here :-(. It should be "--sysroot=${LIBCXX_SYSROOT}".