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:
authorDaniel Podder <dapodd@microsoft.com>2017-06-13 11:14:34 +0300
committerJan Vorlicek <janvorli@microsoft.com>2017-06-13 11:14:34 +0300
commit8c59c18377c55379fa695a834ace9ae6dd623924 (patch)
treee21ecc627c66cc16c981f0a3f4b6f1e892014dce /src/coreclr/pgosupport.cmake
parent1e1cf7f2864534e5e3c6a462370a4749ddb85011 (diff)
Fix Linux PGO optdata consumption + PGO count update (dotnet/coreclr#12239)
* Update PGO package version to 20170612-1411 * Fix PGO optdata path issue on Linux Commit migrated from https://github.com/dotnet/coreclr/commit/a3ebe55ad325b1a68c5418a5e163ddbf71168a73
Diffstat (limited to 'src/coreclr/pgosupport.cmake')
-rw-r--r--src/coreclr/pgosupport.cmake8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/coreclr/pgosupport.cmake b/src/coreclr/pgosupport.cmake
index 1f8ee9c8dbd..f3d00b75059 100644
--- a/src/coreclr/pgosupport.cmake
+++ b/src/coreclr/pgosupport.cmake
@@ -15,12 +15,14 @@ function(add_pgo TargetName)
endif(WIN32)
set(CLR_CMAKE_OPTDATA_PACKAGEWITHRID "optimization.${CLR_CMAKE_TARGET_OS}-${CLR_CMAKE_TARGET_ARCH}.PGO.CoreCLR")
+
+ # On case-sensitive file systems, NuGet packages are restored to lowercase paths
+ string(TOLOWER "${CLR_CMAKE_OPTDATA_PACKAGEWITHRID}/${CLR_CMAKE_OPTDATA_VERSION}" OptDataVersionedSubPath)
+
file(TO_NATIVE_PATH
- "${CLR_CMAKE_PACKAGES_DIR}/${CLR_CMAKE_OPTDATA_PACKAGEWITHRID}/${CLR_CMAKE_OPTDATA_VERSION}/data/${ProfileFileName}"
+ "${CLR_CMAKE_PACKAGES_DIR}/${OptDataVersionedSubPath}/data/${ProfileFileName}"
ProfilePath
)
- # NuGet packages are restored to lowercase paths
- string(TOLOWER "${ProfilePath}" ProfilePath)
if(CLR_CMAKE_PGO_INSTRUMENT)
if(WIN32)