diff options
Diffstat (limited to 'python/servo')
-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"] |