Skip to content
Snippets Groups Projects
  • Paul Robinson's avatar
    f5c6ef2e
    Fix dependency file escaping. · f5c6ef2e
    Paul Robinson authored
    When writing a dependency (.d) file, if space or # is immediately
    preceded by one or more backslashes, escape the backslashes as well as
    the space or # character. Otherwise leave backslash alone.
    This straddles the fence between BSD Make (which does no escaping at
    all, and does not support space or # in filespecs) and GNU Make (which
    does support escaping, but will fall back to the filespec as-written
    if the escaping doesn't match an existing file).
    
    Differential Revision: http://reviews.llvm.org/D9208
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237296 91177308-0d34-0410-b5e6-96231b3b80d8
    f5c6ef2e
    History
    Fix dependency file escaping.
    Paul Robinson authored
    When writing a dependency (.d) file, if space or # is immediately
    preceded by one or more backslashes, escape the backslashes as well as
    the space or # character. Otherwise leave backslash alone.
    This straddles the fence between BSD Make (which does no escaping at
    all, and does not support space or # in filespecs) and GNU Make (which
    does support escaping, but will fall back to the filespec as-written
    if the escaping doesn't match an existing file).
    
    Differential Revision: http://reviews.llvm.org/D9208
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237296 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.