1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-09-11 12:30:43 +03:00

speed up file copy on windows

Summary:
X-link: https://github.com/facebookincubator/fizz/pull/155

X-link: https://github.com/facebookincubator/zstrong/pull/1085

getdeps windows file copy is very slow, speed it up

Reviewed By: bigfootjon

Differential Revision: D66830544

fbshipit-source-id: 43213e258c71ae706bb059600619e276e7491a90
This commit is contained in:
Alex Hornby
2024-12-06 01:30:06 -08:00
committed by Facebook GitHub Bot
parent 8f72b80c14
commit 18fefedec8
3 changed files with 37 additions and 18 deletions

View File

@@ -13,6 +13,7 @@ import sys
import typing
from .builder import BuilderBase
from .copytree import simple_copytree
if typing.TYPE_CHECKING:
from .buildopts import BuildOptions
@@ -79,7 +80,7 @@ class CargoBuilder(BuilderBase):
os.remove(dst)
else:
shutil.rmtree(dst)
shutil.copytree(src, dst)
simple_copytree(src, dst)
def cargo_config_file(self):
build_source_dir = self.build_dir