aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2018-05-17 12:24:55 -0500
committerGitHub <noreply@github.com>2018-05-17 12:24:55 -0500
commit3f651af1ef7657ad2d2df8055d301a836ccecdfc (patch)
treefc1cb2c693f3154caee2305608ea055d50895c29
parent70e0aa1904e590bcce34ed2385f54fe46255b0c1 (diff)
downloadservo-jdm-patch-16.tar.gz
servo-jdm-patch-16.zip
Disable codegen-units on macOSjdm-patch-16
-rw-r--r--python/servo/command_base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index a200fa05f24..c273ebcf0e8 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -559,6 +559,10 @@ class CommandBase(object):
# where we want to run doctests as part of `./mach test-unit`
env['RUSTDOC'] = path.join(self.context.topdir, 'etc', 'rustdoc-with-private')
+ # Workaround for https://github.com/servo/servo/issues/20756
+ if sys.platform == "darwin":
+ env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C codegen-units=1"
+
if self.config["build"]["rustflags"]:
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " " + self.config["build"]["rustflags"]