Use LLVM_USE_SYMLINKS option in install_symlink
authorMichael Platings <michael.platings@arm.com>
Mon, 6 Mar 2023 22:53:54 +0000 (22:53 +0000)
committerMichael Platings <michael.platings@arm.com>
Wed, 8 Mar 2023 07:26:27 +0000 (07:26 +0000)
commit5c602c46b1ef36e00dcbdfef3186eabb3655481d
tree4953853a15e0f92d876e11742ddc53ea376d1499
parent5541f47326e0ec2e26eb2929f30d46e32c5743fc
Use LLVM_USE_SYMLINKS option in install_symlink

The change to potentially use symlinks on Windows was added in
https://reviews.llvm.org/D99170.

LLVM_USE_SYMLINKS was added more recently in
https://reviews.llvm.org/D135578 and allows specifying at configure time
whether or not symlinks should be created. The benefit of using this
option is it allows building the package on a symlink-capable Windows
machine with symlinks disabled so that the resulting package can be used
on a Windows machine that doesn't support symlinks.

Differential Revision: https://reviews.llvm.org/D145443
llvm/cmake/modules/AddLLVM.cmake
llvm/cmake/modules/LLVMInstallSymlink.cmake