diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2019-10-15 11:25:36 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2019-10-15 11:25:36 +0200 |
commit | 6ef9d341327412a1e20de2812692172cc4c378c4 (patch) | |
tree | 0600cde419068b39c83c166558e0531ed27e58af /python/servo/command_base.py | |
parent | 1f6402465579e787e63b34b24ac46593c27c2f3d (diff) | |
download | servo-6ef9d341327412a1e20de2812692172cc4c378c4.tar.gz servo-6ef9d341327412a1e20de2812692172cc4c378c4.zip |
Work around deprecation warnings caused by autocfg $RUSTFLAGS handling
See https://github.com/servo/servo/issues/24446
Diffstat (limited to 'python/servo/command_base.py')
-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 7f4e941a4c7..eb56a4d9c24 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -770,6 +770,10 @@ install them, let us know by filing a bug!") if self.config["build"]["thinlto"]: env['RUSTFLAGS'] += " -Z thinlto" + # Work around https://github.com/servo/servo/issues/24446 + # Argument-less str.split normalizes leading, trailing, and double spaces + env['RUSTFLAGS'] = " ".join(env['RUSTFLAGS'].split()) + return env @staticmethod |