I'd like to include my own --max-memory and --initial-memory, could you change:
<IlcWasmGlobalBase>1024</IlcWasmGlobalBase>
<!-- ... -->
<CustomLinkerArg Include="-Wl,--max-memory=2147483648" />
<CustomLinkerArg Include="-Wl,--global-base=$(IlcWasmGlobalBase)" />
to
<IlcWasmGlobalBase Condition="'$(IlcWasmGlobalBase)' == ''">1024</IlcWasmGlobalBase>
<!-- ... -->
<CustomLinkerArg Include="-Wl,--initial-memory=$(EmccInitialHeapSize)" Condition="'(EmccInitialHeapSize)' != ''" />
<CustomLinkerArg Include="-Wl,--max-memory=$(EmccMaximumHeapSize)" Condition="'(EmccMaximumHeapSize)' != ''" />
<CustomLinkerArg Include="-Wl,--max-memory=2147483648" Condition="'(EmccMaximumHeapSize)' == ''" />
<CustomLinkerArg Include="-Wl,--global-base=$(IlcWasmGlobalBase)" Condition="'$(IlcWasmGlobalBase)' != ''" />
The EmccInitialHeapSize/EmccMaximumHeapSize are used in the browser-wasm for initial/max size, why not have them? So that we can include things like --relocatable (if it came to that, I know there's other things that need to be changed).
Can you also make the linking another target, so we can bootstrap more of the things in LinkNativeLlvm in the future if we need to?
Edit: Ultimately it'd be nice to be able to link a wasm created with this with another wasm with the linker. But it complains about not being relocatable.
I'd like to include my own --max-memory and --initial-memory, could you change:
to
The
EmccInitialHeapSize/EmccMaximumHeapSizeare used in the browser-wasm for initial/max size, why not have them? So that we can include things like--relocatable(if it came to that, I know there's other things that need to be changed).Can you also make the linking another target, so we can bootstrap more of the things in
LinkNativeLlvmin the future if we need to?Edit: Ultimately it'd be nice to be able to link a wasm created with this with another wasm with the linker. But it complains about not being relocatable.