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

Unified Diff: tools/build.py

Issue 810623005: Build Observatory with runtime (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/tools/create_resources.py ('k') | tools/canary.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/build.py
diff --git a/tools/build.py b/tools/build.py
index f38757a167c7e3611d17de25094d7e23a2ab7baa..14fd484fafb5c19ae8be3c18f345721d79e9cc87 100755
--- a/tools/build.py
+++ b/tools/build.py
@@ -76,6 +76,11 @@ def BuildOptions():
help='Name of the devenv.com/msbuild executable on Windows (varies for '
'different versions of Visual Studio)',
default=vs_executable)
+ result.add_option("--use-bootstrap-for-observatory",
+ help='Use a stripped down Dart binary built on the host machine '
+ 'for building Observatory. Necessary on Linux machines which have '
+ 'libc incompatibilities with the prebuilt Dart binaries.',
+ default=False, action="store_true")
return result
@@ -361,7 +366,7 @@ def NotifyBuildDone(build_config, success, start):
icon = 'info'
else:
icon = 'error'
- command = ("powershell -command \""
+ command = ("powershell -command \""
"[reflection.assembly]::loadwithpartialname('System.Windows.Forms')"
"| Out-Null;"
"[reflection.assembly]::loadwithpartialname('System.Drawing')"
@@ -384,6 +389,8 @@ def BuildOneConfig(options, target, target_os, mode, arch, override_tools):
global filter_xcodebuild_output
start_time = time.time()
os.environ['DART_BUILD_MODE'] = mode
+ if options.use_bootstrap_for_observatory != False:
+ os.environ['DART_USE_BOOTSTRAP_BIN'] = '1'
build_config = utils.GetBuildConf(mode, arch, target_os)
if HOST_OS == 'macos':
filter_xcodebuild_output = True
« no previous file with comments | « runtime/tools/create_resources.py ('k') | tools/canary.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698