summaryrefslogtreecommitdiff
path: root/pgosupport.cmake
diff options
context:
space:
mode:
authorDaniel Podder <dapodd@microsoft.com>2017-06-13 08:14:34 (GMT)
committerJan Vorlicek <janvorli@microsoft.com>2017-06-13 08:14:34 (GMT)
commita3ebe55ad325b1a68c5418a5e163ddbf71168a73 (patch)
tree9f652c026eb3d32d54cacc42b08fc0fe3ff1cc1f /pgosupport.cmake
parente977dde4c5f5210447564ca8779d3c6c00eaf7c1 (diff)
downloadcoreclr-a3ebe55ad325b1a68c5418a5e163ddbf71168a73.zip
coreclr-a3ebe55ad325b1a68c5418a5e163ddbf71168a73.tar.gz
coreclr-a3ebe55ad325b1a68c5418a5e163ddbf71168a73.tar.bz2
Fix Linux PGO optdata consumption + PGO count update (#12239)
* Update PGO package version to 20170612-1411 * Fix PGO optdata path issue on Linux
Diffstat (limited to 'pgosupport.cmake')
-rw-r--r--pgosupport.cmake8
1 files changed, 5 insertions, 3 deletions
diff --git a/pgosupport.cmake b/pgosupport.cmake
index 1f8ee9c..f3d00b7 100644
--- a/pgosupport.cmake
+++ b/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)