tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 0516e0135dab129510c0dee588ea75ffa62f24c8
parent 4dad85cc864bef71024e2c4ea6f4c5ed6c728ea7
Author: Mike Hommey <mh+mozilla@glandium.org>
Date:   Fri, 31 Oct 2025 11:48:51 +0000

Bug 1997382 - Look for -std: in midl.py instead of -std=. r=firefox-build-system-reviewers,sergesanspaille

Before bug 1902214, compilation flags for clang-cl would use `-Xclang
-std=`, which is what midl.py currently looks for. The script should
have been updated back in bug 1902214, switching to -std:. We do that
now.

Differential Revision: https://phabricator.services.mozilla.com/D270796

Diffstat:
Mbuild/midl.py | 9+--------
1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/build/midl.py b/build/midl.py @@ -46,16 +46,9 @@ def search_path(paths, path): # Filter-out -std= flag from the preprocessor command, as we're not preprocessing # C or C++, and the command would fail with the flag. def filter_preprocessor(cmd): - prev = None for arg in cmd: - if arg == "-Xclang": - prev = arg - continue - if not arg.startswith("-std="): - if prev: - yield prev + if not arg.startswith(("-std=", "-std:")): yield arg - prev = None # Preprocess all the direct and indirect inputs of midl, and put all the