Skip to content

Commit

Permalink
Update to C++20 (#12656)
Browse files Browse the repository at this point in the history
* Update to C++20

* Change files

* Fix Desktop Builds

* Address Feedback
  • Loading branch information
chiaramooney authored Feb 1, 2024
1 parent 4bc72a1 commit adefdee
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 2,597 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Update to C++20",
"packageName": "react-native-windows",
"email": "34109996+chiaramooney@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
<ClCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<LanguageStandard Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">stdcpp17</LanguageStandard>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
Expand Down
2 changes: 1 addition & 1 deletion vnext/Desktop/React.Windows.Desktop.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
$(ReactNativeDir)\ReactCommon\react\renderer\graphics\platform\cxx;
%(AdditionalIncludeDirectories);
</AdditionalIncludeDirectories>
<AdditionalOptions>%(AdditionalOptions) /Zc:strictStrings /bigobj</AdditionalOptions>
<AdditionalOptions>%(AdditionalOptions) /Zc:strictStrings /bigobj /await</AdditionalOptions>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<RuntimeTypeInfo Condition="'$(Configuration)'=='Debug'">true</RuntimeTypeInfo>
Expand Down
4 changes: 2 additions & 2 deletions vnext/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
-->
<EnableSourceLink Condition="'$(EnableSourceLink)' == ''">false</EnableSourceLink>
<!-- When bumping the Folly version, be sure to bump the git hash of that version's commit and build Folly.vcxproj (to update its cgmanifest.json) too. -->
<FollyVersion>2023.10.16.00</FollyVersion>
<FollyCommitHash>3da4d3ccc4ea69bc10800754816e339d912736bd</FollyCommitHash>
<FollyVersion>2023.11.06.00</FollyVersion>
<FollyCommitHash>d62707bf4dc8c58bcc317260611b8cbe25c7f444</FollyCommitHash>
<!-- When bumping the fmt version, be sure to bump the git hash of that version's commit and build fmt.vcxproj (to update its cgmanifest.json) too. -->
<FmtVersion>10.1.0</FmtVersion>
<FmtCommitHash>ca2e3685b160617d3d95fcd9e789c4e06ca88</FmtCommitHash>
Expand Down
7 changes: 7 additions & 0 deletions vnext/Folly/Folly.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@
</ClCompile>
<ClCompile Include="pch.cpp" />
<ClCompile Include="$(FollyDir)\folly\system\AtFork.cpp" />
<ClCompile Include="$(FollyDir)\folly\SharedMutex.cpp" />
<ClCompile Include="$(FollyDir)\folly\concurrency\CacheLocality.cpp" />
<ClCompile Include="$(FollyDir)\folly\detail\Futex.cpp" />
<ClCompile Include="$(FollyDir)\folly\synchronization\ParkingLot.cpp" />
<ClCompile Include="$(FollyDir)\folly\synchronization\SanitizeThread.cpp" />
<ClCompile Include="$(FollyDir)\folly\portability\SysResource.cpp" />
<ClCompile Include="$(FollyDir)\folly\portability\Unistd.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="$(FollyDir)\folly\portability\Asm.h">
Expand Down
Loading

0 comments on commit adefdee

Please sign in to comment.