Revision: 4394
Author: erik.co...@gmail.com
Date: Tue Apr 13 02:01:30 2010
Log: Fix cross compilation of snapshot builds using scons.
With this change we also activate snapshots for ARM
benchmarking builds.
Review URL: http://codereview.chromium.org/1627019
http://code.google.com/p/v8/source/detail?r=4394
Modified:
/branches/bleeding_edge/src/SConscript
=======================================
--- /branches/bleeding_edge/src/SConscript Thu Apr 8 06:37:39 2010
+++ /branches/bleeding_edge/src/SConscript Tue Apr 13 02:01:30 2010
@@ -306,7 +306,12 @@
source_objs = context.ConfigureObject(env, source_files)
non_snapshot_files = [dtoa_obj, source_objs]
- # Create snapshot if necessary.
+ # Create snapshot if necessary. For cross compilation you should either
+ # do without snapshots and take the performance hit or you should build a
+ # host VM with the simulator=arm and snapshot=on options and then take
the
+ # resulting snapshot.cc file from obj/release and put it in the src
+ # directory. Then rebuild the VM with the cross compiler and specify
+ # snapshot=nobuild on the scons command line.
empty_snapshot_obj = context.ConfigureObject(env, 'snapshot-empty.cc')
mksnapshot_env = env.Copy()
mksnapshot_env.Replace(**context.flags['mksnapshot'])
@@ -316,7 +321,7 @@
if context.build_snapshot:
snapshot_cc = env.Snapshot('snapshot.cc', mksnapshot,
LOGFILE=File('snapshot.log').abspath)
else:
- snapshot_cc = Command('snapshot.cc', [], [])
+ snapshot_cc = 'snapshot.cc'
snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.'])
else:
snapshot_obj = empty_snapshot_obj
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev