Ignore:
Timestamp:
Apr 29, 2015, 3:12:31 PM (10 years ago)
Author:
[email protected]
Message:

Fix non-cygwin incremental builds on Windows.
https://bugs.webkit.org/show_bug.cgi?id=143264

Reviewed by Brent Fulgham.

  • generate-js-builtins:

Remove stale headers before calling os.rename to replace them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/generate-js-builtins

    r181673 r183581  
    281281
    282282if (not os.path.exists(output_base + ".h")) or (not filecmp.cmp(output_base + ".h.tmp", output_base + ".h", shallow=False)):
     283    if (os.path.exists(output_base + ".h")):
     284        os.remove(output_base + ".h")
    283285    os.rename(output_base + ".h.tmp", output_base + ".h")
    284286else:
     
    286288
    287289if (not os.path.exists(output_base + ".cpp")) or (not filecmp.cmp(output_base + ".cpp.tmp", output_base + ".cpp", shallow=False)):
     290    if (os.path.exists(output_base + ".cpp")):
     291        os.remove(output_base + ".cpp")
    288292    os.rename(output_base + ".cpp.tmp", output_base + ".cpp")
    289293else:
Note: See TracChangeset for help on using the changeset viewer.