mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-12 06:21:29 +00:00
Add shared memory support to compiler (#494)
This commit is contained in:
committed by
Daniel Wirtz
parent
0c64f21250
commit
951b6f9f45
@ -421,6 +421,7 @@ exports.main = function main(argv, options, callback) {
|
||||
assemblyscript.setTarget(compilerOptions, 0);
|
||||
assemblyscript.setNoAssert(compilerOptions, args.noAssert);
|
||||
assemblyscript.setImportMemory(compilerOptions, args.importMemory);
|
||||
assemblyscript.setSharedMemory(compilerOptions, args.sharedMemory);
|
||||
assemblyscript.setImportTable(compilerOptions, args.importTable);
|
||||
assemblyscript.setMemoryBase(compilerOptions, args.memoryBase >>> 0);
|
||||
assemblyscript.setSourceMap(compilerOptions, args.sourceMap != null);
|
||||
|
@ -101,6 +101,11 @@
|
||||
"type": "b",
|
||||
"default": false
|
||||
},
|
||||
"sharedMemory": {
|
||||
"description": "Declare memory as shared by settings the max shared memory.",
|
||||
"type": "i",
|
||||
"default": 0
|
||||
},
|
||||
"memoryBase": {
|
||||
"description": "Sets the start offset of compiler-generated static memory.",
|
||||
"type": "i",
|
||||
|
Reference in New Issue
Block a user