Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomáš Rylek <trylek@microsoft.com>2020-12-15 02:56:53 +0300
committerGitHub <noreply@github.com>2020-12-15 02:56:53 +0300
commitbb71a7412668d857adc0a2486bddf5494a4466bc (patch)
tree9b92631dc51b4ac1ca74e572bac21405d8c65c1a /src/coreclr/build-runtime.cmd
parent296aaf818ec02101226845aea39ca14d32519cf2 (diff)
Fix previously overlooked path to pgocheck.py (src/coreclr/src) (#46019)
Looking around the script I also noticed that __SourceDir is not used anymore so I removed it. Thanks Tomas
Diffstat (limited to 'src/coreclr/build-runtime.cmd')
-rw-r--r--src/coreclr/build-runtime.cmd11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/coreclr/build-runtime.cmd b/src/coreclr/build-runtime.cmd
index f5aa11ec917..d27c268a11b 100644
--- a/src/coreclr/build-runtime.cmd
+++ b/src/coreclr/build-runtime.cmd
@@ -29,7 +29,6 @@ if defined VS160COMNTOOLS (
:: __TargetOS -- default: windows
:: __ProjectDir -- default: directory of the dir.props file
:: __RepoRootDir -- default: directory two levels above the dir.props file
-:: __SourceDir -- default: %__ProjectDir%\src\
:: __RootBinDir -- default: %__RepoRootDir%\artifacts\
:: __BinDir -- default: %__RootBinDir%\%__TargetOS%.%__BuildArch.%__BuildType%\
:: __IntermediatesDir
@@ -49,7 +48,6 @@ if %__ProjectDir:~-1%==\ set "__ProjectDir=%__ProjectDir:~0,-1%"
set "__RepoRootDir=%__ProjectDir%\..\.."
set "__ProjectFilesDir=%__ProjectDir%"
-set "__SourceDir=%__ProjectDir%\src"
set "__RootBinDir=%__RepoRootDir%\artifacts"
set __BuildAll=
@@ -688,7 +686,14 @@ if %__BuildNative% EQU 1 (
:SkipCopyUcrt
if %__EnforcePgo% EQU 1 (
- "%PYTHON%" "%__ProjectDir%\src\scripts\pgocheck.py" "%__BinDir%\coreclr.dll" "%__BinDir%\clrjit.dll"
+ set PgoCheckCmd="!PYTHON!" "!__ProjectDir!\scripts\pgocheck.py" "!__BinDir!\coreclr.dll" "!__BinDir!\clrjit.dll"
+ echo !PgoCheckCmd!
+ !PgoCheckCmd!
+ if not !errorlevel! == 0 (
+ set __exitCode=!errorlevel!
+ echo !__ErrMsgPrefix!!__MsgPrefix!Error: Error running pgocheck.py on coreclr and clrjit.
+ goto ExitWithCode
+ )
)
:SkipNativeBuild