mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-19 09:51:33 +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++;
|
||||
|
Reference in New Issue
Block a user