Skip to content

bazel: Fix pch timestamp issues#17030

Merged
jmarantz merged 1 commit intoenvoyproxy:mainfrom
keith:ks/bazel-fix-pch-timestamp-issues
Jun 18, 2021
Merged

bazel: Fix pch timestamp issues#17030
jmarantz merged 1 commit intoenvoyproxy:mainfrom
keith:ks/bazel-fix-pch-timestamp-issues

Conversation

@keith
Copy link
Copy Markdown
Member

@keith keith commented Jun 17, 2021

Previously I thought it wasn't safe to pass this because it wasn't in a
shipped version of clang yet but it turns out I wasn't using -Xclang.
This solves an issue where if you build a pch, then touch a header
file that's included in it without actually changing contents, including
the pch would fail. Now we let bazel handle that and since it doesn't
use timestamps it's a bit smarter about it.

Signed-off-by: Keith Smiley keithbsmiley@gmail.com

Previously I thought it wasn't safe to pass this because it wasn't in a
shipped version of clang yet but it turns out I wasn't using `-Xclang`.
This solves an issue where if you build a pch, then `touch` a header
file that's included in it without actually changing contents, including
the pch would fail. Now we let bazel handle that and since it doesn't
use timestamps it's a bit smarter about it.

Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
@jmarantz jmarantz merged commit 2f220c9 into envoyproxy:main Jun 18, 2021
@keith keith deleted the ks/bazel-fix-pch-timestamp-issues branch June 18, 2021 14:40
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
Previously I thought it wasn't safe to pass this because it wasn't in a
shipped version of clang yet but it turns out I wasn't using `-Xclang`.
This solves an issue where if you build a pch, then `touch` a header
file that's included in it without actually changing contents, including
the pch would fail. Now we let bazel handle that and since it doesn't
use timestamps it's a bit smarter about it.

Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants