Skip to content

Commit

Permalink
Use hardlinks when copying LLVM into the tree (#111716)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky authored Jan 22, 2025
1 parent 11d70ec commit 4758103
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mono/llvm/llvm-init.proj
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@
<LLVMFiles Include="$(_LocalLLVMArtifacts)\obj\InstallRoot-$(BuildArchitecture)\**"
FileArch="%(PackageReference.PackageArch)" Condition="'$(_LocalLLVMArtifacts)' != ''" />
</ItemGroup>
<Copy SourceFiles="@(LLVMFiles)" DestinationFolder="$(MonoLLVMDir)\%(LLVMFiles.FileArch)\%(RecursiveDir)">
<PropertyGroup>
<_CopyLLVMWithHardlinks>false</_CopyLLVMWithHardlinks>
<_CopyLLVMWithHardlinks Condition="'$(_LocalLLVMArtifacts)' == ''">true</_CopyLLVMWithHardlinks>
</PropertyGroup>
<Copy SourceFiles="@(LLVMFiles)" DestinationFolder="$(MonoLLVMDir)\%(LLVMFiles.FileArch)\%(RecursiveDir)" UseHardlinksIfPossible="$(_CopyLLVMWithHardlinks)">
<Output TaskParameter="DestinationFiles" ItemName="FileWrites"/>
</Copy>
</Target>
Expand Down

0 comments on commit 4758103

Please sign in to comment.