зеркало из https://github.com/microsoft/cppwinrt.git
Enable /await opt-out so users can manually enable /await:strict. (#1015)
* Switch to using /await:strict which is binary compatible with c++20 coroutines. * Make legacy coroutines opt-in.
This commit is contained in:
Родитель
3aa0339a4f
Коммит
032effe565
|
@ -81,4 +81,9 @@
|
|||
Description="Enables or disables the default for copying binaries to the output folder to be false"
|
||||
Category="General" />
|
||||
|
||||
<BoolProperty Name="CppWinRTEnableLegacyCoroutines"
|
||||
DisplayName="Enable legacy coroutines (C++17)"
|
||||
Description="Enables the /await compiler option (disable this if you want to pass this yourself)"
|
||||
Category="General" />
|
||||
|
||||
</Rule>
|
||||
|
|
|
@ -871,7 +871,7 @@ $(XamlMetaDataProviderPch)
|
|||
<ItemDefinitionGroup>
|
||||
<ClCompile>
|
||||
<AdditionalOptions>%(AdditionalOptions) /bigobj</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'%(ClCompile.LanguageStandard)' == 'stdcpp17'">%(AdditionalOptions) /await</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'%(ClCompile.LanguageStandard)' == 'stdcpp17' And '$(CppWinRTEnableLegacyCoroutines)' != 'false'">%(AdditionalOptions) /await</AdditionalOptions>
|
||||
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(GeneratedFilesDir)</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
<Midl Condition="'$(CppWinRTModernIDL)' != 'false'">
|
||||
|
|
Загрузка…
Ссылка в новой задаче