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

Issue 397593006: Fixes create_sdk target for cross-builds. (Closed)

Created:
6 years, 5 months ago by zra
Modified:
6 years, 5 months ago
Reviewers:
Bill Hesse, Ivan Posva
CC:
reviews_dartlang.org, ricow1
Visibility:
Public.

Description

Fixes create_sdk target for cross-builds. Building an sdk requires snapshots to be generated for pub, analyzer, dart2js, etc. using a Dart VM binary that has been built for the host. Currently, when we cross-build, we do not build a Dart VM binary for the host. Rather than monkey with the gyp files to do that, this change modifies build.py to explicitly build: 1. The create_sdk target for the host arch, 2. The runtime target for the target arch, After which files are copied to create a dart-sdk directory for the target archetecture. After this change, we *should* be able to cross-build Debian packages for arm, which I'll work on in a subsequent change. R=iposva@google.com, whesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=38337

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -107 lines) Patch
M tools/build.py View 1 2 4 chunks +167 lines, -106 lines 0 comments Download
M tools/utils.py View 1 2 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
zra
https://codereview.chromium.org/397593006/diff/1/tools/build.py File tools/build.py (right): https://codereview.chromium.org/397593006/diff/1/tools/build.py#newcode472 tools/build.py:472: def BuildCrossSdk(options, target_os, mode, arch): This is where the ...
6 years, 5 months ago (2014-07-15 23:15:52 UTC) #1
Ivan Posva
+whesse The CL in general LGTM, but two things make me slightly nervous: - How ...
6 years, 5 months ago (2014-07-16 05:46:03 UTC) #2
Bill Hesse
The target "samples" builds "runtime/dart-runtime.gyp:sample_extension", which is a binary shared library. There is also test_extension, ...
6 years, 5 months ago (2014-07-16 07:35:43 UTC) #3
zra
I'm not sure I understand Ivan's first concern. The Dart VM binary is the only ...
6 years, 5 months ago (2014-07-16 14:48:21 UTC) #4
Bill Hesse
LGTM.
6 years, 5 months ago (2014-07-17 09:20:26 UTC) #5
zra
On 2014/07/16 14:48:21, zra wrote: > As for the second concern, I can try doing ...
6 years, 5 months ago (2014-07-17 16:54:59 UTC) #6
zra
6 years, 5 months ago (2014-07-17 18:05:46 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as r38337 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698