-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Address Sanitizer support in CoreCLR #74623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
e0c4a60
6fc2555
d7fe870
007da09
8d3615d
92c4858
a1f9900
2978de4
203e70c
eb9bf22
413410b
da30efe
b99fab9
cd167b3
8fcc66f
931f444
6732866
3c7dd54
04d2d9f
97c848f
9946108
982e701
6239952
6769613
35d9bd7
8b19fd3
5ae90d3
647f73b
5873281
d996328
2e452d4
2130d7b
dc26f51
6cc6ad8
591093e
d285048
7187ff2
6448d19
113f5b2
11cccdf
c0357af
133e99b
b863d6f
8a51e72
98ed710
4efdf96
6855c78
db5b069
6383866
0f0fdf5
36a450e
f6987ed
619966b
929a042
5913ca4
b8b3762
c2433e5
fa15f17
757a329
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,6 +71,7 @@ set __Ninja=1 | |
| set __RequestedBuildComponents= | ||
| set __OutputRid= | ||
| set __ExplicitHostArch= | ||
| set __SubDir= | ||
|
|
||
| :Arg_Loop | ||
| if "%1" == "" goto ArgsDone | ||
|
|
@@ -130,6 +131,7 @@ if [!__PassThroughArgs!]==[] ( | |
| if /i "%1" == "-hostarch" (set __HostArch=%2&set __ExplicitHostArch=1&shift&shift&goto Arg_Loop) | ||
| if /i "%1" == "-os" (set __TargetOS=%2&shift&shift&goto Arg_Loop) | ||
| if /i "%1" == "-outputrid" (set __OutputRid=%2&shift&shift&goto Arg_Loop) | ||
| if /i "%1" == "-subdir" (set __SubDir=%2&shift&shift&goto Arg_Loop) | ||
|
|
||
| if /i "%1" == "-cmakeargs" (set __CMakeArgs=%2 %__CMakeArgs%&set __remainingArgs="!__remainingArgs:*%2=!"&shift&shift&goto Arg_Loop) | ||
| if /i "%1" == "-configureonly" (set __ConfigureOnly=1&set __BuildNative=1&shift&goto Arg_Loop) | ||
|
|
@@ -217,8 +219,15 @@ set "__ArtifactsIntermediatesDir=%__RepoRootDir%\artifacts\obj\coreclr\" | |
| if "%__Ninja%"=="0" (set "__IntermediatesDir=%__IntermediatesDir%\ide") | ||
| set "__PackagesBinDir=%__BinDir%\.nuget" | ||
|
|
||
| if "%__ExplicitHostArch%" == "1" set __BinDir=%__BinDir%\%__HostArch% | ||
| if "%__ExplicitHostArch%" == "1" set __IntermediatesDir=%__IntermediatesDir%\%__HostArch% | ||
| if "%__ExplicitHostArch%" == "1" ( | ||
| set __BinDir=%__BinDir%\%__HostArch% | ||
| set __IntermediatesDir=%__IntermediatesDir%\%__HostArch% | ||
| ) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was this just added for parity with the linux scripts? If you haven't already, it'd be worth checking that it doesn't introduce unwanted changes to the output dir in our windows build scenarios.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need this for sanitized windows builds/tests. A version of ASAN with the fixes we need isn't out yet (which is why there isn't a Windows test leg in this PR) but I've been testing locally with the fixes. |
||
|
|
||
| if NOT "%__SubDir%"=="" ( | ||
| set __BinDir=%__BinDir%\%__SubDir% | ||
| set __IntermediatesDir=%__IntermediatesDir%\%__SubDir% | ||
| ) | ||
|
|
||
| REM Generate path to be set for CMAKE_INSTALL_PREFIX to contain forward slash | ||
| set "__CMakeBinDir=%__BinDir%" | ||
|
|
@@ -318,6 +327,9 @@ for /f "delims=" %%a in ("-%__RequestedBuildComponents%-") do ( | |
| if not "!string:-crosscomponents-=!"=="!string!" ( | ||
| set __CMakeTarget=!__CMakeTarget! crosscomponents | ||
| ) | ||
| if not "!string:-debug-=!"=="!string!" ( | ||
| set __CMakeTarget=!__CMakeTarget! debug | ||
| ) | ||
| ) | ||
| if "!__CMakeTarget!" == "" ( | ||
| set __CMakeTarget=install | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.