We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 903e3c2 commit 89a7d96Copy full SHA for 89a7d96
src/Configure.rc
@@ -105,7 +105,7 @@ BEGIN
105
"Button",BS_AUTORADIOBUTTON,153,20,124,10
106
CONTROL "Statically link C/C++ runtime library",IDC_LINK_RUNTIME,"Button",BS_AUTOCHECKBOX |
107
WS_TABSTOP,15,35,133,10
108
- GROUPBOX "Build options",IDC_STATIC,5,55,304,150
+ GROUPBOX "Build options",IDC_STATIC,5,55,304,165
109
LTEXT "Quantum depth",IDC_STATIC,205,70,55,8
110
COMBOBOX IDC_QUANTUM_DEPTH,260,68,45,50,CBS_DROPDOWNLIST |
111
WS_VSCROLL | WS_TABSTOP
@@ -141,6 +141,9 @@ BEGIN
141
CONTROL "Use registry settings or hard-coded paths to locate installed components",
142
IDC_INSTALLED_SUPPORT,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
143
15,190,240,10
144
+ CONTROL "Enable ASAN in debug builds",
145
+ IDC_ENABLE_ASAN,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
146
+ 15,205,240,10
147
END
148
149
IDD_FINISHED_PAGE DIALOG 0, 0, 318, 233
src/Options.h
@@ -27,6 +27,7 @@ class Options
27
28
Architecture architecture;
29
BOOL enableDpc;
30
+ BOOL enableAsan;
31
BOOL excludeDeprecated;
32
BOOL includeIncompatibleLicense;
33
BOOL includeNonWindows;
src/Pages/TargetPage.cpp
@@ -49,6 +49,7 @@ void TargetPage::DoDataExchange(CDataExchange* pDX)
49
DDX_Check(pDX,IDC_EXCLUDE_DEPRECATED,_options->excludeDeprecated);
50
DDX_Check(pDX,IDC_INSTALLED_SUPPORT,_options->installedSupport);
51
DDX_Check(pDX,IDC_ZERO_CONFIGURATION_SUPPORT,_options->zeroConfigurationSupport);
52
+ DDX_Check(pDX,IDC_ENABLE_ASAN,_options->enableAsan);
53
}
54
55
BOOL TargetPage::OnInitDialog()
src/Project.cpp
@@ -668,6 +668,8 @@ void Project::writeProperties(wofstream &file) const
668
file << " <ProjectName>" << fullName() << "</ProjectName>" << endl;
669
file << " <ProjectGuid>{" << guid() << "}</ProjectGuid>" << endl;
670
file << " <Keyword>" << _options.platform() << "Proj</Keyword>" << endl;
671
+ if (_options.enableAsan)
672
+ file << " <EnableASAN Condition=\"'$(Configuration)'=='Debug'\">true</EnableASAN>" << endl;
673
file << " </PropertyGroup>" << endl;
674
file << " <Import Project=\"$(VCTargetsPath)\\Microsoft.Cpp.Default.props\" />" << endl;
675
file << " <PropertyGroup Label=\"Configuration\">" << endl;
src/resource.h
@@ -29,10 +29,11 @@
#define IDC_EXCLUDE_DEPRECATED 1014
#define IDC_INSTALLED_SUPPORT 1015
#define IDC_ZERO_CONFIGURATION_SUPPORT 1016
-#define IDC_FINISHED_TEXT 1017
-#define IDD_WAITDIALOG 1018
34
-#define IDC_MSGCTRL 1019
35
-#define IDC_PROGRESSCTRL 1020
+#define IDC_ENABLE_ASAN 1017
+#define IDC_FINISHED_TEXT 1018
+#define IDD_WAITDIALOG 1019
+#define IDC_MSGCTRL 1020
36
+#define IDC_PROGRESSCTRL 1021
37
38
// Next default values for new objects
39
//
0 commit comments