msbuild: use pathmap to unify source paths embedded in objects

This commit is contained in:
Shawn Hoffman 2022-04-18 14:43:15 -07:00
parent f2c5c052bc
commit eb87245be8
1 changed files with 9 additions and 0 deletions

View File

@ -132,6 +132,15 @@
them to be redefined), which could have unexpected results. them to be redefined), which could have unexpected results.
--> -->
<AdditionalOptions>/experimental:deterministic %(AdditionalOptions)</AdditionalOptions> <AdditionalOptions>/experimental:deterministic %(AdditionalOptions)</AdditionalOptions>
<!--
pathmap replaces path prefixes of source files with a hardcoded value, assisting with keeping output
files uniform even if actually built from different locations. The mapped path doesn't really need full
drive prefix, but it keeps things human readable. Note the trailing "\" is actually to be escaped by a
preceeding "\" in the expanded variable.
-->
<AdditionalOptions>/pathmap:"$(DolphinRootDir)\"=d:\ %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/pathmap:"$(WindowsSdkDir)\"=w:\ %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/pathmap:"$(VCToolsetsDir)\"=v:\ %(AdditionalOptions)</AdditionalOptions>
</ClCompile> </ClCompile>
<!--ClCompile Debug--> <!--ClCompile Debug-->
<ClCompile Condition="'$(Configuration)'=='Debug'"> <ClCompile Condition="'$(Configuration)'=='Debug'">