OSDN Git Service

[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)
committerTom Stellard <tstellar@redhat.com>
Tue, 9 Mar 2021 04:16:33 +0000 (20:16 -0800)
commit15d1ee36720ff24323f55452ae3cfb63f318c3f3
tree8f6b54d435f232cb630487c57599b800e848ae26
parentbff59aca162ef16d7634dc9df39f1f3af31ecb93
[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

(cherry picked from commit ba860963b156db3b653c67ef044df877f3cea9cc)
compiler-rt/lib/builtins/CMakeLists.txt