diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2023-01-07 12:18:16 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-01-22 17:43:33 +0300 |
commit | bc6df812a1529ab0cbac7f17ac6c4f4aff2a8bbf (patch) | |
tree | abdec3d8fe12b46f2c0bcaa06694190a76eb6700 /drivers/virt | |
parent | 295d8398c67e314d99bb070f38883f83fe94a97a (diff) | |
download | linux-bc6df812a1529ab0cbac7f17ac6c4f4aff2a8bbf.tar.xz |
fixdep: parse Makefile more correctly to handle comments etc.
fixdep parses dependency files (*.d) emitted by the compiler.
*.d files are Makefiles describing the dependencies of the main source
file.
fixdep understands minimal Makefile syntax. It works well enough for
GCC and Clang, but not for rustc.
This commit improves the parser a little more for better processing
comments, escape sequences, etc.
My main motivation is to drop comments. rustc may output comments
(e.g. env-dep). Currentyly, rustc build rules invoke sed to remove
comments, but it is more efficient to do it in fixdep.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Tested-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'drivers/virt')
0 files changed, 0 insertions, 0 deletions