We can see that the second part of the output is printed twice. I don't know why but as a workaround I removed every lines after the End of search list. to discard the duplication.
I also put the -isystem in a separate element in the list.
I also edited the clangd toolchain and tried to test my changes but I don't know how to configure it. I tried and failed.
external/com_gcc_arm_none_eabi_compiler/defs.bzl after the PR:
On my machine (ubuntu 20.04), the include directory list of the compiler is wrongly generated by the rule.
-isystem
flag is concatenated before the paths-D__USES_INITFINI__
and some other strange things in the middleexternal/com_gcc_arm_none_eabi_compiler/defs.bzl before the PR:
When I run the following command in the terminal the output is not duplicated
But I printed the output of the same command executed by bazel and I got this output
We can see that the second part of the output is printed twice. I don't know why but as a workaround I removed every lines after the
End of search list.
to discard the duplication.I also put the
-isystem
in a separate element in the list.I also edited the clangd toolchain and tried to test my changes but I don't know how to configure it. I tried and failed.
external/com_gcc_arm_none_eabi_compiler/defs.bzl after the PR: