mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
27 lines
1.5 KiB
XML
27 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup Label="Configuration">
|
|
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
|
|
</PropertyGroup>
|
|
<ItemDefinitionGroup>
|
|
<ClCompile>
|
|
<LanguageStandard>stdcpp20</LanguageStandard>
|
|
<LanguageStandard_C>stdc17</LanguageStandard_C>
|
|
<ConformanceMode>true</ConformanceMode>
|
|
<!-- 禁用 RTTI ,因为它会导致二进制膨胀 -->
|
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
|
<SDLCheck>true</SDLCheck>
|
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
|
<WarningLevel>Level4</WarningLevel>
|
|
<!-- 'type' : class 'type1' needs to have dll-interface to be used by clients of class 'type2' -->
|
|
<DisableSpecificWarnings>4251</DisableSpecificWarnings>
|
|
<!-- /await:strict: 禁用协程的非标准语言扩展 -->
|
|
<!-- /utf-8: 源代码使用 UTF-8 格式 -->
|
|
<!-- /Zc:__cplusplus: 更新 __cplusplus 宏 -->
|
|
<!-- /volatile:iso: 禁用 volatile 的语义扩展 -->
|
|
<!-- /fp:contract: 生成浮点收缩指令。浮点收缩指令是将两个浮点操作合并为一个指令的机器指令,例如 Fused-Multiply-Add (FMA) -->
|
|
<!-- fp:contract 可以和其他 fp 选项同时存在,因此每个项目可以分别指定自己的浮点模型 -->
|
|
<AdditionalOptions>%(AdditionalOptions) /await:strict /utf-8 /Zc:__cplusplus /volatile:iso /fp:contract</AdditionalOptions>
|
|
</ClCompile>
|
|
</ItemDefinitionGroup>
|
|
</Project>
|