diff options
author | Josh Matthews <josh@joshmatthews.net> | 2018-05-17 12:24:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-17 12:24:55 -0500 |
commit | 3f651af1ef7657ad2d2df8055d301a836ccecdfc (patch) | |
tree | fc1cb2c693f3154caee2305608ea055d50895c29 | |
parent | 70e0aa1904e590bcce34ed2385f54fe46255b0c1 (diff) | |
download | servo-jdm-patch-16.tar.gz servo-jdm-patch-16.zip |
Disable codegen-units on macOSjdm-patch-16
-rw-r--r-- | python/servo/command_base.py | 4 |
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"] |