Skip to content

Commit

Permalink
fix(win): Don't pass -MG to clang-cl as that breaks missing include…
Browse files Browse the repository at this point in the history
… errors
  • Loading branch information
timniederhausen committed Mar 11, 2024
1 parent d7ff901 commit 426e22b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions toolchain/win/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,11 @@ template("msvc_toolchain") {
# clang-cl, not even when prefixed with `-Xclang`. The underlying cc1
# binary does know how to generate depfiles but it requires somewhat
# different flags.
# See https://bugzilla.mozilla.org/show_bug.cgi?id=1340588
# and https://hg.mozilla.org/mozilla-central/rev/30dc6c484d42
show_includes = "-Xclang -dependency-file -Xclang {{output}}.d -Xclang -MT -Xclang {{source}} -Xclang -MP -Xclang -MG"
# See:
# - https://bugzilla.mozilla.org/show_bug.cgi?id=1340588
# - https://hg.mozilla.org/mozilla-central/rev/30dc6c484d42
# - https://hg.mozilla.org/mozilla-central/rev/9935b243c9a3
show_includes = "-Xclang -dependency-file -Xclang {{output}}.d -Xclang -MT -Xclang {{source}} -Xclang -MP"
} else {
show_includes = "/showIncludes"
}
Expand Down

0 comments on commit 426e22b

Please sign in to comment.