|
@ -98,6 +98,13 @@ def set_options(opt): |
|
|
, dest='shared_v8_libname' |
|
|
, dest='shared_v8_libname' |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
opt.add_option( '--oprofile' |
|
|
|
|
|
, action='store_true' |
|
|
|
|
|
, default=False |
|
|
|
|
|
, help="add oprofile support" |
|
|
|
|
|
, dest='use_oprofile' |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
opt.add_option('--shared-cares' |
|
|
opt.add_option('--shared-cares' |
|
|
, action='store_true' |
|
|
, action='store_true' |
|
@ -178,6 +185,8 @@ def configure(conf): |
|
|
conf.env["USE_SHARED_CARES"] = o.shared_cares or o.shared_cares_includes or o.shared_cares_libpath |
|
|
conf.env["USE_SHARED_CARES"] = o.shared_cares or o.shared_cares_includes or o.shared_cares_libpath |
|
|
conf.env["USE_SHARED_LIBEV"] = o.shared_libev or o.shared_libev_includes or o.shared_libev_libpath |
|
|
conf.env["USE_SHARED_LIBEV"] = o.shared_libev or o.shared_libev_includes or o.shared_libev_libpath |
|
|
|
|
|
|
|
|
|
|
|
conf.env["USE_OPROFILE"] = o.use_oprofile |
|
|
|
|
|
|
|
|
conf.check(lib='dl', uselib_store='DL') |
|
|
conf.check(lib='dl', uselib_store='DL') |
|
|
if not sys.platform.startswith("sunos") and not sys.platform.startswith("cygwin"): |
|
|
if not sys.platform.startswith("sunos") and not sys.platform.startswith("cygwin"): |
|
|
conf.env.append_value("CCFLAGS", "-rdynamic") |
|
|
conf.env.append_value("CCFLAGS", "-rdynamic") |
|
@ -423,7 +432,12 @@ def v8_cmd(bld, variant): |
|
|
else: |
|
|
else: |
|
|
snapshot = "" |
|
|
snapshot = "" |
|
|
|
|
|
|
|
|
cmd_R = sys.executable + ' "%s" -j %d -C "%s" -Y "%s" visibility=default mode=%s %s library=static %s' |
|
|
if bld.env["USE_OPROFILE"]: |
|
|
|
|
|
profile = "prof=oprofile" |
|
|
|
|
|
else: |
|
|
|
|
|
profile = "" |
|
|
|
|
|
|
|
|
|
|
|
cmd_R = sys.executable + ' "%s" -j %d -C "%s" -Y "%s" visibility=default mode=%s %s library=static %s %s' |
|
|
|
|
|
|
|
|
cmd = cmd_R % ( scons |
|
|
cmd = cmd_R % ( scons |
|
|
, Options.options.jobs |
|
|
, Options.options.jobs |
|
@ -432,6 +446,7 @@ def v8_cmd(bld, variant): |
|
|
, mode |
|
|
, mode |
|
|
, arch |
|
|
, arch |
|
|
, snapshot |
|
|
, snapshot |
|
|
|
|
|
, profile |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
return ("echo '%s' && " % cmd) + cmd |
|
|
return ("echo '%s' && " % cmd) + cmd |
|
|