This commit is contained in:
Ryan 2009-05-05 21:16:19 +02:00
Родитель ae7c6314ca
Коммит 0bb12be660
2 изменённых файлов: 9 добавлений и 7 удалений

Просмотреть файл

@ -58,11 +58,11 @@ ObjectWrap::Detach ()
}
void*
ObjectWrap::Unwrap (v8::Handle<v8::Object> handle)
ObjectWrap::Unwrap (Handle<Object> handle)
{
v8::HandleScope scope;
v8::Handle<v8::External> field =
v8::Handle<v8::External>::Cast(handle->GetInternalField(0));
HandleScope scope;
Handle<External> field =
Handle<External>::Cast(handle->GetInternalField(0));
return field->Value();
}

Просмотреть файл

@ -55,6 +55,8 @@ def configure(conf):
conf.env.append_value("CCFLAGS", "-DEIO_STACKSIZE=%d" % (4096*8))
conf.check(lib='rt', uselib_store='RT')
conf.check(lib='profiler', uselib_store='PROFILER')
# Split off debug variant before adding variant specific defines
debug_env = conf.env.copy()
conf.set_env_name('debug', debug_env)
@ -68,8 +70,8 @@ def configure(conf):
# Configure default variant
conf.setenv('default')
conf.env.append_value('CCFLAGS', ['-DNDEBUG', '-O2'])
conf.env.append_value('CXXFLAGS', ['-DNDEBUG', '-O2'])
conf.env.append_value('CCFLAGS', ['-DNDEBUG', '-O3'])
conf.env.append_value('CXXFLAGS', ['-DNDEBUG', '-O3'])
conf.write_config_header("config.h")
def build(bld):
@ -165,7 +167,7 @@ def build(bld):
deps/http_parser
"""
node.uselib_local = "oi ev eio http_parser"
node.uselib = "V8 RT"
node.uselib = "V8 RT PROFILER"
node.install_path = '${PREFIX}/bin'
node.chmod = 0755