Skip to content

Commit f56c9e9

Browse files
authored
Fix isysroot patch comment ambiguity per hedronvision#179
1 parent 5bcb0bd commit f56c9e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

refresh.template.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ def _all_platform_patch(compile_args: typing.List[str]):
870870
# For more context see: https://github.com/hedronvision/bazel-compile-commands-extractor/issues/21
871871
compile_args = (arg for arg in compile_args if not arg == '-fno-canonical-system-headers')
872872

873-
# Swap -isysroot for --sysroot to work around some unknown sysroot bug in clangd.
873+
# Swap -isysroot in for --sysroot to work around some unknown sysroot bug in clangd.
874874
# For context, see https://github.com/hedronvision/bazel-compile-commands-extractor/issues/82
875875
# The = logic has to do with clang not accepting -isysroot=, but accepting --sysroot=. Note that -isysroot <path> is accepted, though undocumented.
876876
compile_args = ('-isysroot'+arg[len('--sysroot')+arg.startswith('--sysroot='):] if arg.startswith('--sysroot') else arg for arg in compile_args)

0 commit comments

Comments
 (0)