Skip to content

Commit 08d68a8

Browse files
committed
Disable ASAN in a static build.
1 parent 6c0371f commit 08d68a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Project.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ void Project::writeProperties(wofstream &file) const
668668
file << " <ProjectName>" << fullName() << "</ProjectName>" << endl;
669669
file << " <ProjectGuid>{" << guid() << "}</ProjectGuid>" << endl;
670670
file << " <Keyword>" << _options.platform() << "Proj</Keyword>" << endl;
671-
if (_options.enableAsan)
671+
if (_options.enableAsan && !_options.isStaticBuild)
672672
file << " <EnableASAN Condition=\"'$(Configuration)'=='Debug'\">true</EnableASAN>" << endl;
673673
file << " </PropertyGroup>" << endl;
674674
file << " <Import Project=\"$(VCTargetsPath)\\Microsoft.Cpp.Default.props\" />" << endl;

0 commit comments

Comments
 (0)