Uh oh!
There was an error while loading. Please reload this page.
Fix invalid PGO optimization path on Nuget cache containing spaces. - #90729
Conversation
Since CMD does not strip quotes from arguments passed in with quotes by default, if a Nuget package cache path containing a space is passed to build-runtime.cmd, it will pass it into an additional CMake argument with an additional set of quotes. This causes string semantics to be disabled upon reaching the second opening quote, thus separating the cache path into two separate arguments incorrectly, resulting in the PGO data optimization pointing to an invalid path. This patch fixes this issue by simply removing the redundant quotes when accepting the arguments in build-runtime.cmd.
ghost
commented
Aug 17, 2023
Tagging subscribers to this area: @hoyosjs Issue DetailsSince CMD does not strip quotes from arguments passed in with quotes by default, if a Nuget package cache path containing a space is passed to This causes string semantics to be disabled upon reaching the second opening quote, thus separating the cache path into two separate arguments incorrectly, resulting in the PGO data optimization pointing to an invalid path. This patch fixes this issue by simply removing the redundant quotes when accepting the arguments in
|
a74nh
commented
Aug 22, 2023
We (Arm) saw this issue when doing testing directly on a Windows On Arm box. |
a74nh
commented
Aug 22, 2023
Looks like the |
Since CMD does not strip quotes from arguments passed in with quotes by default, if a Nuget package cache path containing a space is passed to
build-runtime.cmd, it will pass it into an additional CMake argument with an additional set of quotes.This causes string semantics to be disabled upon reaching the second opening quote, thus separating the cache path into two separate arguments incorrectly, resulting in the PGO data optimization pointing to an invalid path.
This patch fixes this issue by simply removing the redundant quotes when accepting the arguments in
build-runtime.cmd.