Browse Source

Export $CC and $CXX to uv and V8's build systems

Now you can compile with clang by doing

  make distclean
  CC=clang CXX=clang++ ./configure
  make
v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
6b78b6bf72
  1. 9
      wscript

9
wscript

@ -568,6 +568,11 @@ def build_v8(bld):
rule = v8_cmd(bld, "default"), rule = v8_cmd(bld, "default"),
before = "cxx", before = "cxx",
install_path = None) install_path = None)
v8.env.env = dict(os.environ)
v8.env.env['CC'] = ' '.join(bld.env['CC'])
v8.env.env['CXX'] = ' '.join(bld.env['CXX'])
v8.uselib = "EXECINFO" v8.uselib = "EXECINFO"
bld.env["CPPPATH_V8"] = "deps/v8/include" bld.env["CPPPATH_V8"] = "deps/v8/include"
t = join(bld.srcnode.abspath(bld.env_of_name("default")), v8.target) t = join(bld.srcnode.abspath(bld.env_of_name("default")), v8.target)
@ -614,7 +619,9 @@ def build_uv(bld):
rule = uv_cmd(bld, 'default') rule = uv_cmd(bld, 'default')
) )
#bld.env["CPPPATH_UV"] = 'deps/uv/' uv.env.env = dict(os.environ)
uv.env.env['CC'] = ' '.join(bld.env['CC'])
uv.env.env['CXX'] = ' '.join(bld.env['CXX'])
t = join(bld.srcnode.abspath(bld.env_of_name("default")), uv.target) t = join(bld.srcnode.abspath(bld.env_of_name("default")), uv.target)
bld.env_of_name('default').append_value("LINKFLAGS_UV", t) bld.env_of_name('default').append_value("LINKFLAGS_UV", t)

Loading…
Cancel
Save