mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 08:02:24 +03:00
distutils_rust: workaround a 'cc' deadlock issue
Summary: Set `-j 100` to workaround a deadlock issue in `cc`. This should unblock our contbuild. Reviewed By: singhsrb Differential Revision: D17286866 fbshipit-source-id: 547888c2e6b1f4c0e5552b4a6502839766fa8141
This commit is contained in:
parent
2a0b8f58fb
commit
154094fdb7
@ -279,7 +279,17 @@ replace-with = "vendored-sources"
|
|||||||
os.unlink(cargolockpath)
|
os.unlink(cargolockpath)
|
||||||
|
|
||||||
paths = self.rust_binary_paths()
|
paths = self.rust_binary_paths()
|
||||||
cmd = [paths.get("cargo", "cargo"), "build", "--manifest-path", target.manifest]
|
# -j 100 is to workaround a bug in 'cc' that can cause deadlock.
|
||||||
|
# Remove it once cc gets upgrade to include
|
||||||
|
# https://github.com/alexcrichton/cc-rs/commit/238ee4f093c37084314711f05154c14eb6362711
|
||||||
|
cmd = [
|
||||||
|
paths.get("cargo", "cargo"),
|
||||||
|
"build",
|
||||||
|
"-j",
|
||||||
|
"100",
|
||||||
|
"--manifest-path",
|
||||||
|
target.manifest,
|
||||||
|
]
|
||||||
if not self.debug:
|
if not self.debug:
|
||||||
cmd.append("--release")
|
cmd.append("--release")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user