You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are the undocumented props if anyone wants to pick this up:
EmccCompileOptimizationFlag - allows you set how the wasm gets compiled. For example, this creates wasm that runs with assertions enabled: <EmccCompileOptimizationFlag>-O0 -s ASSERTIONS=2 -s STACK_OVERFLOW_CHECK=2 -s SAFE_HEAP=1</EmccCompileOptimizationFlag>
EmccCompileLinkFlag - similar to EmccCompileOptimizationFlag but for linking
WasmNativeStrip: Strip the native executable. Defaults to true.
WasmLinkIcalls: Link out unused icalls. Defaults to the value of WasmBuildNative.
WasmDebugLevel: Enables debugging and sets the debug log level. A value greater than zero (0) enables debugging and sets the debug log level to debug_level. A value of zero (0) disables debugging and enables interpreter optimizations. A value less than zero (0) enables debugging and disables debug logging.
WasmDedup: String deduplication of generic instances when using AOT. Defaults to true.
WasmNativeDebugSymbols: Build with native debug symbols. Useful only with RunAOTCompilation or WasmBuildNative set to true. Defaults to true.
EmccVerbose: Set to false to disable verbose emcc output. Defaults to false❓
@gewarren ... We just had a request to document WasmBuildNative (not on the list ☝️), but I believe 🤔 it's set for Release configuration automatically by the SDK (I'll check on that) ... so that's all we'll probably say in the ASP.NET Core doc set about it. Anyway, there are more optional properties than are in the list ☝️ ...
Activity
gewarren commentedon Dec 8, 2021
These are the undocumented props if anyone wants to pick this up:
EmccCompileOptimizationFlag- allows you set how the wasm gets compiled. For example, this creates wasm that runs with assertions enabled:<EmccCompileOptimizationFlag>-O0 -s ASSERTIONS=2 -s STACK_OVERFLOW_CHECK=2 -s SAFE_HEAP=1</EmccCompileOptimizationFlag>EmccCompileLinkFlag- similar to EmccCompileOptimizationFlag but for linkingWasmNativeStrip: Strip the native executable. Defaults totrue.WasmLinkIcalls: Link out unused icalls. Defaults to the value ofWasmBuildNative.WasmDebugLevel: Enables debugging and sets the debug log level. A value greater than zero (0) enables debugging and sets the debug log level todebug_level. A value of zero (0) disables debugging and enables interpreter optimizations. A value less than zero (0) enables debugging and disables debug logging.WasmDedup: String deduplication of generic instances when using AOT. Defaults totrue.WasmNativeDebugSymbols: Build with native debug symbols. Useful only withRunAOTCompilationorWasmBuildNativeset totrue. Defaults totrue.EmccVerbose: Set tofalseto disable verbose emcc output. Defaults tofalse❓If these are provided by the Microsoft.NET.Sdk SDK, they should be documented here: https://docs.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props.
guardrex commentedon Dec 29, 2021
@gewarren ... We just had a request to document
WasmBuildNative(not on the list ☝️), but I believe 🤔 it's set for Release configuration automatically by the SDK (I'll check on that) ... so that's all we'll probably say in the ASP.NET Core doc set about it. Anyway, there are more optional properties than are in the list ☝️ ...https://github.com/dotnet/runtime/blob/main/src/mono/wasm/build/WasmApp.targets
Artak yielded to Larry/Ankit/you to decide where best to document them and which ones. I'll cross-link for them after this issue is worked.
UPDATE: I've cross-linked to the
.targetsfile temporarily. I'll keep an 👁️ on this issue.