You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug 1943149 - build(swgl): work around broken (upstream) cc::Tool detection of clang --driver-mode=cl r=#gfx-reviewers
In upstream, a new heuristic for detecting compiler families in
`cc::Tool` was introduced. The heuristic we originally patched upstream
is now the fallback heuristic, and does not get used for our `clang`
compiler. This causes our interaction with default flags and
`cc::Tool::is_like_msvc` to be incorrect in `swgl`, since `clang`'s CLI
to use `cl`-like arguments, and rejects `clang`-like arguments.
Work around this by detecting checking `Tool`s' base command and
"wrapper arguments" to see if we're (1) using `clang` and (2) we have
a wrapper argument matching `--driver-mode=cl`. If so, provide `cl`-like
arguments in `swgl`, rather than `clang`-like arguments.
0 commit comments