Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • scripts
  • basic
  • fixdep.c
Find file BlameHistoryPermalink
  • Masahiro Yamada's avatar
    fixdep: parse Makefile more correctly to handle comments etc. · bc6df812
    Masahiro Yamada authored Jan 07, 2023
    
    
    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: default avatarMasahiro Yamada <masahiroy@kernel.org>
    Acked-by: default avatarMiguel Ojeda <ojeda@kernel.org>
    Tested-by: default avatarMiguel Ojeda <ojeda@kernel.org>
    bc6df812
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7