Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Issue 2021353003: Copy local CRT DLLs to gn output directories (Closed)

Created:
4 years, 6 months ago by brucedawson
Modified:
4 years, 6 months ago
Reviewers:
gab, scottmg
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Copy local CRT DLLs to gn output directories When DEPOT_TOOLS_WIN_TOOLCHAIN=0 it is assumed that the developer has a local install of Visual Studio, and therefore the CRT DLLs don't need to be copied to the output directory in order to run binaries. However, when creating packages for running elsewhere (isolates or the mini_installer) those DLLs are needed. In order to avoid special cases elsewhere this change copies them to the output directories when 'gn gen' or 'gn args' runs. This change also makes the newly copied files writable so that they can easily be deleted. For backwards compatibility it also makes the files writable before deleting them. This avoids a problem with pgort140.dll which can end up read-only and thus impossible to copy over or delete without first removing the read-only flag. This change also removes the need for create_installer_archive.py to copy CRT DLLs, which should avoid bugs with over-copying of these DLLs. This change also updates that script to say that ucrtbase*.dll is required. BUG=611934, 585556, 610336 Committed: https://crrev.com/e7bd0348e692e635c039328cd06aac1ce23b7d4f Cr-Commit-Position: refs/heads/master@{#397189}

Patch Set 1 #

Patch Set 2 : Fixing quotes #

Total comments: 4

Patch Set 3 : 32-bit python fixes and delete obsolete code #

Total comments: 4

Patch Set 4 : Make path a raw string #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -68 lines) Patch
M build/vs_toolchain.py View 1 2 3 5 chunks +28 lines, -2 lines 0 comments Download
M chrome/tools/build/win/create_installer_archive.py View 1 2 3 chunks +1 line, -66 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
brucedawson
This should fix mini_installer and isolate builds with DEPOT_TOOLS_WIN_TOOLCHAIN=0, and generally lets us make assumptions ...
4 years, 6 months ago (2016-05-31 21:36:19 UTC) #2
scottmg
https://codereview.chromium.org/2021353003/diff/20001/build/vs_toolchain.py File build/vs_toolchain.py (right): https://codereview.chromium.org/2021353003/diff/20001/build/vs_toolchain.py#newcode84 build/vs_toolchain.py:84: vs_runtime_dll_dirs = [ 'C:/Windows/System32', 'C:/Windows/SysWOW64' ] Hmm, I'm confused. ...
4 years, 6 months ago (2016-05-31 21:57:45 UTC) #3
brucedawson
I'll get the bitness figured out and upload a new version - with the now-extraneous ...
4 years, 6 months ago (2016-05-31 23:32:18 UTC) #4
brucedawson
Okay, I think this is good now. In addition to fixing the mini_installer and isolate ...
4 years, 6 months ago (2016-06-01 01:03:20 UTC) #7
scottmg
lgtm https://codereview.chromium.org/2021353003/diff/40001/build/vs_toolchain.py File build/vs_toolchain.py (right): https://codereview.chromium.org/2021353003/diff/40001/build/vs_toolchain.py#newcode88 build/vs_toolchain.py:88: x64_path = 'System32' if bitness == '64bit' else ...
4 years, 6 months ago (2016-06-01 16:54:23 UTC) #9
brucedawson
https://codereview.chromium.org/2021353003/diff/40001/build/vs_toolchain.py File build/vs_toolchain.py (right): https://codereview.chromium.org/2021353003/diff/40001/build/vs_toolchain.py#newcode88 build/vs_toolchain.py:88: x64_path = 'System32' if bitness == '64bit' else 'Sysnative' ...
4 years, 6 months ago (2016-06-01 17:25:33 UTC) #10
gab
On 2016/06/01 01:03:20, brucedawson wrote: > Okay, I think this is good now. > > ...
4 years, 6 months ago (2016-06-01 17:44:39 UTC) #11
gab
On 2016/06/01 17:44:39, gab wrote: > On 2016/06/01 01:03:20, brucedawson wrote: > > Okay, I ...
4 years, 6 months ago (2016-06-01 17:45:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021353003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2021353003/60001
4 years, 6 months ago (2016-06-01 17:47:42 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-01 18:37:36 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-06-01 19:11:31 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e7bd0348e692e635c039328cd06aac1ce23b7d4f
Cr-Commit-Position: refs/heads/master@{#397189}

Powered by Google App Engine
This is Rietveld 408576698