Skip to content
  • haraken@chromium.org's avatar
    In CodeGeneratorObjC.pm, overwrite the output .h/.mm · 8675fa83
    haraken@chromium.org authored
    only if the bytes differ
    https://bugs.webkit.org/show_bug.cgi?id=76874
    
    Reviewed by Adam Barth.
    
    This is one of steps to stop rebuilding .h/.cpp/.mm files
    generated by unchanged IDLs (bug 76836).
    This patch makes a change on CodeGeneratorObjC.pm so that
    it overwrites the output .h/.mm only if the bytes differ.
    
    No tests. No change in behavior.
    I manually confirmed that when I add a new attribute to Element.idl,
    the time-stamps of unrelated DOM*.h and DOM*.mm do not change.
    
    * bindings/scripts/CodeGenerator.pm:
    (UpdateFileIfChanged): Added. This method writes data to a file
    only if the data is different from the data in the current file.
    * bindings/scripts/CodeGeneratorObjC.pm:
    (WriteData): Used UpdateFileIfChanged().
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105697 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    8675fa83