mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-28 22:21:50 +00:00
Add importMemory option to asc, see #36
This commit is contained in:
@ -277,6 +277,7 @@ exports.main = function main(argv, options, callback) {
|
||||
assemblyscript.setNoTreeShaking(compilerOptions, !!args.noTreeShaking);
|
||||
assemblyscript.setNoAssert(compilerOptions, !!args.noAssert);
|
||||
assemblyscript.setNoMemory(compilerOptions, !!args.noMemory);
|
||||
assemblyscript.setImportMemory(compilerOptions, !!args.importMemory);
|
||||
assemblyscript.setMemoryBase(compilerOptions, args.memoryBase >>> 0);
|
||||
assemblyscript.setSourceMap(compilerOptions, args.sourceMap != null);
|
||||
|
||||
|
@ -89,6 +89,10 @@
|
||||
"desc": "Does not set up a memory. Useful for low-level WebAssembly.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"importMemory": {
|
||||
"desc": "Imports the memory instance provided by the embedder.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"memoryBase": {
|
||||
"desc": "Sets the start offset of compiler-generated static memory.",
|
||||
"type": "number"
|
||||
|
Reference in New Issue
Block a user