mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-25 12:41:50 +00:00
Initial new rt integration
This commit is contained in:
@ -392,11 +392,11 @@ exports.main = function main(argv, options, callback) {
|
||||
// Include runtime template
|
||||
{
|
||||
let templateName = String(args.runtime);
|
||||
let templateText = exports.libraryFiles["runtime/" + templateName];
|
||||
let templateText = exports.libraryFiles["rt/index-" + templateName];
|
||||
if (templateText == null) {
|
||||
templateText = readFile(templateName + ".ts", baseDir);
|
||||
if (templateText == null) {
|
||||
return callback(Error("Runtime template '" + templateName + " not found."));
|
||||
return callback(Error("Runtime template '" + templateName + "' not found."));
|
||||
}
|
||||
}
|
||||
stats.parseCount++;
|
||||
|
@ -83,15 +83,14 @@
|
||||
},
|
||||
"runtime": {
|
||||
"description": [
|
||||
"Specifies the runtime template to include in the program.",
|
||||
"Specifies the runtime implementation to include in the program.",
|
||||
"",
|
||||
" none No allocator/GC or compose your own. [default]",
|
||||
" trace TLSF memory allocator and ITCM garbage collector.",
|
||||
" arena Just the arena memory allocator. No free/GC.",
|
||||
" full Default runtime based on TLSF and reference counting.",
|
||||
" stub Minimal stub implementation without free/GC support.",
|
||||
""
|
||||
],
|
||||
"type": "s",
|
||||
"default": "none"
|
||||
"default": "full"
|
||||
},
|
||||
"debug": {
|
||||
"description": "Enables debug information in emitted binaries.",
|
||||
|
Reference in New Issue
Block a user