[CMake] Add option LLVM_FORCE_CREATE_SYMLINKS
authorTobias Hieta <tobias.hieta@ubisoft.com>
Wed, 12 Oct 2022 08:04:21 +0000 (10:04 +0200)
committerTobias Hieta <tobias@hieta.se>
Wed, 12 Oct 2022 09:06:32 +0000 (11:06 +0200)
commitfc651a06699eb10429316760dc5a6fef1eadab21
tree6017765f52432882fee1e2cdb061bb4ab2a20329
parent5d12b13b0b26bc58b02ee23c369da8b83240cceb
[CMake] Add option LLVM_FORCE_CREATE_SYMLINKS

On Windows we don't create symlinks for the binaries (clang++, clang-cl)
since the support requires special setup (group policy settings and
you need to know exactly our distribution story). But if you know
about these things and have a controlled environment there is a lot
of storage to be saved, so let's add a manual opt-in for using symlinks
on Windows with LLVM_FORCE_CREATE_SYMLINKS=ON.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D135578
llvm/CMakeLists.txt
llvm/cmake/modules/AddLLVM.cmake