Browse Source

确保支持VS2017

tags/2.9.10
tearshark 4 years ago
parent
commit
64e5b00f7a
3 changed files with 10 additions and 7 deletions
  1. 2
    2
      README.md
  2. 1
    0
      tutorial/gcc_bugs.cpp
  3. 7
    5
      vs_proj/librf.vcxproj

+ 2
- 2
README.md View File

@@ -8,10 +8,10 @@
Windows: 使用VS2017/VS2019/clang 9 编译
Android: 使用NDK 20.1 自带的clang编译
Mac: 使用XCode 11.2.1 自带的apple-clang编译
Ubuntu: 使用GCC 10.0.1编译(2020-04-18:mutex ranged lock failed)
Ubuntu: 使用GCC 10.0.1/clang 9 编译(2020-04-18:mutex ranged lock failed)
注意:GCC 10.0.1在C++ Coroutines上存在很多BUG,并且缺少对应的头文件。
当前阶段不推荐使用。
当前阶段不推荐使用GCC

librf有以下特点:


+ 1
- 0
tutorial/gcc_bugs.cpp View File

@@ -92,6 +92,7 @@ static void gcc_bugs_lambda_coroutines2()
{
co_await(head << 0);
intptr_t value = co_await tail;
(void)value;
}
}; //internal compiler error: in captures_temporary, at cp/coroutines.cc:2716
#endif

+ 7
- 5
vs_proj/librf.vcxproj View File

@@ -23,18 +23,18 @@
<ProjectGuid>{C1D4A6BD-592F-4E48-8178-7C87219BF80E}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>librf</RootNamespace>
<WindowsTargetPlatformVersion>10.0.18362.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>ClangCL</PlatformToolset>
<UseDebugLibraries>true</UseDebugLibraries>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>ClangCL</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
@@ -90,7 +90,7 @@
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<LanguageStandard>stdcpplatest</LanguageStandard>
<OmitFramePointers />
<DisableSpecificWarnings>4834</DisableSpecificWarnings>
<DisableSpecificWarnings>4834;4505</DisableSpecificWarnings>
<SDLCheck>true</SDLCheck>
<StringPooling>true</StringPooling>
</ClCompile>
@@ -110,7 +110,7 @@
<LanguageStandard>stdcpplatest</LanguageStandard>
<CLanguageStandard>c11</CLanguageStandard>
<CppLanguageStandard>c++1y</CppLanguageStandard>
<DisableSpecificWarnings>4834</DisableSpecificWarnings>
<DisableSpecificWarnings>4834;4505</DisableSpecificWarnings>
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
</ClCompile>
<Link>
@@ -135,6 +135,7 @@
<OmitFramePointers>true</OmitFramePointers>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<BufferSecurityCheck>false</BufferSecurityCheck>
<DisableSpecificWarnings>4834;4505</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
@@ -165,6 +166,7 @@
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
<BufferSecurityCheck>false</BufferSecurityCheck>
<EnableParallelCodeGeneration>true</EnableParallelCodeGeneration>
<DisableSpecificWarnings>4834;4505</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>

Loading…
Cancel
Save