Fix the hardcoded -MMD compile command on Mac.

It should respect the system_headers_in_deps flag.

Bug: 461655982
Change-Id: Idd597ecd38e5ac855d8e51abda44d5effe0b1262
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7165369
Commit-Queue: Junji Watanabe <jwata@google.com>
Commit-Queue: Marc Jin <jmarc@google.com>
Reviewed-by: Junji Watanabe <jwata@google.com>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1546991}
NOKEYCHECK=True
GitOrigin-RevId: d804bfc94f6a0333fe781d87ebc217e962b1c0d1
4 files changed