[CMake] Passthrough CMAKE_SYSTEM_NAME to default builtin and runtimes target
authorPetr Hosek <phosek@google.com>
Fri, 31 Jan 2020 22:53:07 +0000 (14:53 -0800)
committerPetr Hosek <phosek@google.com>
Wed, 5 Feb 2020 06:38:20 +0000 (22:38 -0800)
commit491a4a7ac9e39fd4cc20a21e7da1961dfc7fc275
treecfcdd1ecc6e9cb6dda5ba041f55fd142202d2e48
parent7800310cb50408ba42f5321f7de956fb69a9efda
[CMake] Passthrough CMAKE_SYSTEM_NAME to default builtin and runtimes target

When building the default builtin and runtimes target, set the
CMAKE_SYSTEM_NAME to the current one. This is not necessary on
Linux and Darwin, but it appears to be necessary on Windows,
otherwise CMake fails.

Differential Revision: https://reviews.llvm.org/D73811
llvm/runtimes/CMakeLists.txt