[CMake][compiler-rt] Use copying instead of symlinking for LSE builtins on non-Unix...
authorRaul Tambre <raul.tambre@cleveron.com>
Sat, 6 Mar 2021 09:45:57 +0000 (11:45 +0200)
committerRaul Tambre <raul.tambre@cleveron.com>
Mon, 8 Mar 2021 07:10:36 +0000 (09:10 +0200)
commitba860963b156db3b653c67ef044df877f3cea9cc
tree20a1101545cf16fe14233a9ce448a223a1ad8cbc
parent5f9489b754055da979876bcb5a357310251c6b87
[CMake][compiler-rt] Use copying instead of symlinking for LSE builtins on non-Unix-likes

As reported in D93278 post-review symlinking requires privilege escalation on Windows.
Copying is functionally same, so fallback to it for systems that aren't Unix-like.
This is similar to the solution in AddLLVM.cmake.

Reviewed By: ikudrin

Differential Revision: https://reviews.llvm.org/D98111
compiler-rt/lib/builtins/CMakeLists.txt