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:
authorMarius Gundersen <me@mariusgundersen.net>2020-02-16 07:43:40 +0300
committerGitHub <noreply@github.com>2020-02-16 07:43:40 +0300
commit924347639f5d8f76ff4e84486fe077db12f81f0a (patch)
treed807ee4909c065e3e3819a36573ab79b73eb20c3 /src/coreclr/pgosupport.cmake
parent6404b8b0e1399c1ae5e732e6c6f5bd2b591b1d35 (diff)
Fix build on systems with space in path (#32169)
This fixes building the project on systems where there is a space in the path of the user. For example on Windows where the user might (hypothetically) be called 'Marius Gundersen' and the path to their user folder is `C:\Users\Marius Gundersen\` the build would fail This fixes #32165
Diffstat (limited to 'src/coreclr/pgosupport.cmake')
-rw-r--r--src/coreclr/pgosupport.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coreclr/pgosupport.cmake b/src/coreclr/pgosupport.cmake
index 7e24b7d2f21..4b119809017 100644
--- a/src/coreclr/pgosupport.cmake
+++ b/src/coreclr/pgosupport.cmake
@@ -30,8 +30,8 @@ function(add_pgo TargetName)
message("PGO data file NOT found: ${ProfilePath}")
else(NOT EXISTS ${ProfilePath})
if(CLR_CMAKE_HOST_WIN32)
- set_property(TARGET ${TargetName} APPEND_STRING PROPERTY LINK_FLAGS_RELEASE " /LTCG /USEPROFILE:PGD=${ProfilePath}")
- set_property(TARGET ${TargetName} APPEND_STRING PROPERTY LINK_FLAGS_RELWITHDEBINFO " /LTCG /USEPROFILE:PGD=${ProfilePath}")
+ set_property(TARGET ${TargetName} APPEND_STRING PROPERTY LINK_FLAGS_RELEASE " /LTCG /USEPROFILE:PGD=\"${ProfilePath}\"")
+ set_property(TARGET ${TargetName} APPEND_STRING PROPERTY LINK_FLAGS_RELWITHDEBINFO " /LTCG /USEPROFILE:PGD=\"${ProfilePath}\"")
else(CLR_CMAKE_HOST_WIN32)
if(UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELEASE OR UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELWITHDEBINFO)
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.6)