Edit

kc3-lang/angle/src/copy_compiler_dll.bat

Branch :

  • Show log

    Commit

  • Author : Scott Graham
    Date : 2015-01-28 12:29:53
    Hash : b633dc61
    Message : Avoid double copy of d3dcompiler_47.dll ninja expects the output of an action to update the timestamp, however a plain copy does not do this. So on a second run, ninja sees the timestamp of the copy .bat is newer than the dll (original publish date) so it re-copies. To avoid this, `touch` the dll on copy. BUG=453037 Change-Id: Icb849d2b0faaceeccfc33e2eda509c835c9cdc93 Reviewed-on: https://chromium-review.googlesource.com/244040 Reviewed-by: Jamie Madill <jmadill@chromium.org> Tested-by: Scott Graham <scottmg@chromium.org>

  • src/copy_compiler_dll.bat
  • @echo off
    set _arch=%1
    set _arch=%_arch:Win32=x86%
    copy %2"\Redist\D3D\"%_arch%"\d3dcompiler_47.dll" %3 > NUL
    :: This is equivalent to `touch', see:
    :: https://technet.microsoft.com/en-us/library/bb490886.aspx
    :: This avoids rerunning because this batch file is also copied to the gen dir,
    :: so it's timestamp would otherwise be newer than the dll.
    copy /b %3\d3dcompiler_47.dll+,, %3\d3dcompiler_47.dll > NUL