Skip to content

Commit

Permalink
Use pre-compiled libjs since smjs.gyp is out of date
Browse files Browse the repository at this point in the history
  • Loading branch information
creationix committed May 10, 2012
1 parent b44bccd commit de259f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion luvmonkey.gyp
Expand Up @@ -37,7 +37,7 @@
'target_name': 'luvmonkey',
'type': 'executable',
'dependencies': [
'deps/smjs/smjs.gyp:smjs',
# 'deps/smjs/smjs.gyp:smjs',
'deps/uv/uv.gyp:uv',
'deps/http-parser/http_parser.gyp:http_parser',
'js2c#host'
Expand All @@ -52,12 +52,15 @@
'libraries': [
'-ldl',
'-lm',
'/home/tim/mozilla-central/js/src/libjs_static.a'
],
}],
],
'include_dirs': [
'src',
'deps/uv/src/ares',
'/home/tim/mozilla-central/js/src/',
'/home/tim/mozilla-central/js/src/dist/include/',
'<(SHARED_INTERMEDIATE_DIR)' # for js_scripts.h
],
'sources': [
Expand Down
7 changes: 3 additions & 4 deletions src/main.c
Expand Up @@ -170,9 +170,8 @@ int main(int argc, const char *argv[])
JS_EvaluateScript(cx, global, embedded_src_main_js, strlen(embedded_src_main_js), "main.js", 1, NULL);

/* Cleanup. */
// TODO: find out why this triggers a smjs assert to fail.
// JS_DestroyContext(cx);
// JS_DestroyRuntime(rt);
// JS_ShutDown();
JS_DestroyContext(cx);
JS_DestroyRuntime(rt);
JS_ShutDown();
return 0;
}

0 comments on commit de259f7

Please sign in to comment.