File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 4
4
<__PyprojectClangCl_Props_Imported >true</__PyprojectClangCl_Props_Imported >
5
5
</PropertyGroup >
6
6
7
+ <PropertyGroup >
8
+ <!-- CLANG_PROFILE_PATH is configurable for "remote PGO builds"
9
+ For convenience, we also accept paths without trailing slashes.
10
+ -->
11
+ <CLANG_PROFILE_PATH Condition =" '$(CLANG_PROFILE_PATH)' == ''" >$(OutDir)</CLANG_PROFILE_PATH >
12
+ <_CLANG_PROFILE_PATH >$(CLANG_PROFILE_PATH)</_CLANG_PROFILE_PATH >
13
+ <_CLANG_PROFILE_PATH Condition =" !HasTrailingSlash($(_CLANG_PROFILE_PATH))" >$(_CLANG_PROFILE_PATH)\</_CLANG_PROFILE_PATH >
14
+ </PropertyGroup >
15
+
7
16
<ItemGroup >
8
17
<_profrawFiles Include =" $(OutDir)instrumented\$(TargetName)_*.profraw" />
9
18
</ItemGroup >
31
40
<ClCompile >
32
41
<AdditionalOptions >-Wno-deprecated-non-prototype -Wno-unused-label -Wno-pointer-sign -Wno-incompatible-pointer-types-discards-qualifiers -Wno-unused-function %(AdditionalOptions)</AdditionalOptions >
33
42
<AdditionalOptions Condition =" $(Configuration) != 'Debug'" >-flto %(AdditionalOptions)</AdditionalOptions >
34
- <AdditionalOptions Condition =" $(SupportPGO) and $(Configuration) == 'PGInstrument'" >-fprofile-instr-generate=$(OutDir )$(TargetName)_%m.profraw %(AdditionalOptions)</AdditionalOptions >
43
+ <AdditionalOptions Condition =" $(SupportPGO) and $(Configuration) == 'PGInstrument'" >-fprofile-instr-generate=$(_CLANG_PROFILE_PATH )$(TargetName)_%m.profraw %(AdditionalOptions)</AdditionalOptions >
35
44
<AdditionalOptions Condition =" $(SupportPGO) and $(Configuration) == 'PGUpdate'" >-fprofile-instr-use=$(OutDir)instrumented\profdata.profdata -Wno-profile-instr-unprofiled %(AdditionalOptions)</AdditionalOptions >
36
45
</ClCompile >
37
46
</ItemDefinitionGroup >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<Project DefaultTargets =" Build" ToolsVersion =" 15.0" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" TreatAsLocalProperty =" Py_IntDir" >
3
3
<Import Project =" python.props" Condition =" $(__Python_Props_Imported) != 'true'" />
4
- <Import Project =" pyproject-clangcl.props" Condition =" $(PlatformToolset) == 'ClangCL' and $(__PyprojectClangCl_Props_Imported) != 'true'" />
5
4
<PropertyGroup Label =" Globals" >
6
5
<__PyProject_Props_Imported >true</__PyProject_Props_Imported >
7
6
<_ProjectFileVersion >10.0.30319.1</_ProjectFileVersion >
25
24
<LinkIncremental Condition =" $(Configuration) != 'Debug'" >false</LinkIncremental >
26
25
</PropertyGroup >
27
26
27
+ <!-- We need the above overridden OutDir, so this must be imported after PropertyGroup -->
28
+ <Import Project =" pyproject-clangcl.props" Condition =" $(PlatformToolset) == 'ClangCL' and $(__PyprojectClangCl_Props_Imported) != 'true'" />
29
+
28
30
<PropertyGroup Condition =" $(TargetExt) != ''" >
29
31
<TargetNameExt >$(TargetName)$(TargetExt)</TargetNameExt >
30
32
<_TargetNameSep >$(TargetNameExt.LastIndexOf(`.`))</_TargetNameSep >
You can’t perform that action at this time.
0 commit comments