Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[enhance] opa-create: started to compile opa-create with node backend

  • Loading branch information...
commit 565fc38af1f4dd1e5ebd446b7c195c1e1a58b878 1 parent 045dd66
@Aqua-Ye Aqua-Ye authored
View
4 tools/build/build_rules.ml
@@ -892,8 +892,8 @@ rule "opa application creator"
Sh("MLSTATELIBS=\""^ opa_prefix ^"\"");
get_tool "opa-bin";
A"-o"; P opa_create_dst; P opa_create_src;
- A"--opx-dir";A "stdlib.qmlflat";
- A"--back-end";A "qmlflat";
+ A"--opx-dir";A "stdlib.qmljs";
+ A"--static-link";
A"-I"; A plugins_dir
]));
View
2  tools/opa-create/src/opa-create.opa
@@ -50,6 +50,7 @@ function write(file, content) {
%%BslFile.of_string%%("./{file}", binary_of_string(content))
}
+Scheduler.push(function () { // hack for node.js toplevel instruction
match (options.name) {
case {none}: System.exit(0);
case {some:name}:
@@ -67,3 +68,4 @@ match (options.name) {
StringMap.iter(iter, resources)
jlog("\nNow you can type:\n$ cd {name}\n$ make run")
}
+})
Please sign in to comment.
Something went wrong with that request. Please try again.