Skip to content

Commit e695432

Browse files
Fix building the reproNative.vcxproj project (#89159)
This got broken in #74623.
1 parent fce5227 commit e695432

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/coreclr/nativeaot/Bootstrap/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
#include <stdint.h>
5-
#include "minipal/utils.h"
65

76
//
87
// This is the mechanism whereby multiple linked modules contribute their global data for initialization at
@@ -219,11 +218,14 @@ int main(int argc, char* argv[])
219218
return __managed__Main(argc, argv);
220219
}
221220

221+
#ifdef HAS_ADDRESS_SANITIZER
222222
// We need to build the bootstrapper as a single object file, to ensure
223223
// the linker can detect that we have ASAN components early enough in the build.
224224
// Include our asan support sources for executable projects here to ensure they
225225
// are compiled into the bootstrapper object.
226226
#include "minipal/asansupport.cpp"
227+
#endif // HAS_ADDRESS_SANITIZER
228+
227229
#endif // !NATIVEAOT_DLL
228230

229231
#ifdef NATIVEAOT_DLL

0 commit comments

Comments
 (0)