-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[wasm] Add optimization flags to bitcode compilation #101538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
df13e5b
85be7b4
3dcc8ac
1ea9dcb
7d7117f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -148,6 +148,8 @@ | |
|
|
||
| <WasiClangCompileOptimizationFlag Condition="'$(WasiClangCompileOptimizationFlag)' == ''">$(_WasiClangOptimizationFlagDefault)</WasiClangCompileOptimizationFlag> | ||
| <WasmCompileOptimizationFlag>$(WasiClangCompileOptimizationFlag)</WasmCompileOptimizationFlag> | ||
| <WasiBitcodeCompileOptimizationFlag Condition="'$(WasiBitcodeCompileOptimizationFlag)' == '' and '$(Configuration)' == 'Release'">-O2</WasiBitcodeCompileOptimizationFlag> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we want a separate property for WASI?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have other wasi specific flags here too, like
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think |
||
| <WasiBitcodeCompileOptimizationFlag Condition="'$(WasiBitcodeCompileOptimizationFlag)' == ''" >$(WasiClangCompileOptimizationFlag)</WasiBitcodeCompileOptimizationFlag> | ||
| <WasiClangLinkOptimizationFlag Condition="'$(WasiClangLinkOptimizationFlag)' == '' and '$(Configuration)' == 'Release'">-O2</WasiClangLinkOptimizationFlag> | ||
| <WasiClangLinkOptimizationFlag Condition="'$(WasiClangLinkOptimizationFlag)' == ''" >$(WasiClangCompileOptimizationFlag)</WasiClangLinkOptimizationFlag> | ||
| <WasmLinkOptimizationFlag>$(WasiClangLinkOptimizationFlag)</WasmLinkOptimizationFlag> | ||
|
|
@@ -265,6 +267,7 @@ | |
| <!-- FIXME: merge with some other target --> | ||
| <Target Name="_WasiBeforeWriteRspForCompilingBitcodeRsp" BeforeTargets="_WasmWriteRspForCompilingBitcode"> | ||
| <ItemGroup> | ||
| <_BitcodeCompileFlags Include="@(WasiBitcodeCompileOptimizationFlag)" /> | ||
| <_BitcodeCompileFlags Include="@(_WasiClangCommonFlags)" /> | ||
| <_BitcodeCompileFlags Include="$(WasiClangExtraBitcodeCompileFlags)" /> | ||
| </ItemGroup> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,6 +44,8 @@ | |
| - $(EmccLinkOptimizationFlag) - Optimization flag to use for the link step | ||
| - $(EmccCompileOptimizationFlag) - Optimization flag to use for compiling native files | ||
| - $(WasmBitcodeCompileOptimizationFlag) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we end up having a separate
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The other wasi specific properties are not listed here either. I guess we consider it rapidly moving target? |
||
| - Optimization flag to use for compiling bitcode files | ||
| - $(EmccFlags) - Emcc flags used for both compiling native files, and linking | ||
| - $(EmccExtraLDFlags) - Extra emcc flags for linking | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.