Skip to content

Commit dc63e9c

Browse files
committed
Issue #25934: Default to /fp:strict for ICC builds
1 parent fd8e850 commit dc63e9c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

PCbuild/pyproject.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
<WholeProgramOptimization>false</WholeProgramOptimization>
5050
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
5151
</ClCompile>
52+
<ClCompile Condition="$(ICCBuild) == 'true'">
53+
<FloatingPointModel>Strict</FloatingPointModel>
54+
</ClCompile>
5255
<Link>
5356
<AdditionalLibraryDirectories>$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
5457
<GenerateDebugInformation>true</GenerateDebugInformation>

PCbuild/python.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
Give a default for BasePlatformToolset as well, it's used by ICC and ignored otherwise
1212
-->
1313
<BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and '$(PlatformToolset)' != 'v90'">v90</BasePlatformToolset>
14+
<ICCBuild>false</ICCBuild>
15+
<ICCBuild Condition="$(PlatformToolset.StartsWith('Intel C++ Compiler'))">true</ICCBuild>
1416
<!--
1517
Convincing MSVC/MSBuild to prefer our platform names is too difficult,
1618
so we define our own constant ArchName and use wherever we need it.

0 commit comments

Comments
 (0)