Skip to content

Commit

Permalink
TYPO: --gcc-toolchain -> -gcc-toolchain.
Browse files Browse the repository at this point in the history
  • Loading branch information
sredmond committed Sep 16, 2022
1 parent 4ef0c07 commit d30bbca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions refresh.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def _get_files(compile_action):

# Getting the source file is a little trickier than it might seem.
# Bazel seems to consistently put the source file being compiled either:
# before the -o flag, for GCC-formatted commands, or
# before the -o flag, for -formatted commands, or
# after the /c flag, for MSVC-formatted commands
# [See https://github.com/hedronvision/bazel-compile-commands-extractor/pull/72 for -c counterexample for GCC]
# This is a strong assumption about Bazel internals, so we're taking some care to check that this condition holds with asserts. That way things are less likely to fail silently if it changes some day.
Expand Down Expand Up @@ -690,7 +690,7 @@ def _all_platform_patch(compile_args: typing.List[str]):
# For more context see: https://github.com/hedronvision/bazel-compile-commands-extractor/issues/21
compile_args = (arg for arg in compile_args if not arg == '-fno-canonical-system-headers')

# Strip out --gcc-toolchain to work around https://github.com/clangd/clangd/issues/1248
# Strip out -gcc-toolchain to work around https://github.com/clangd/clangd/issues/1248
skip_next = False
new_compile_args = []
for arg in compile_args:
Expand Down

0 comments on commit d30bbca

Please sign in to comment.