Author: christian.heimes
Date: Thu Nov 22 11:25:50 2007
New Revision: 59117

Modified:
   python/branches/py3k/PCbuild9/build_pgo.bat
   python/branches/py3k/PCbuild9/bz2.vcproj
   python/branches/py3k/PCbuild9/make_versioninfo.vcproj
   python/branches/py3k/PCbuild9/pginstrument.vsprops
   python/branches/py3k/PCbuild9/pgupdate.vsprops
   python/branches/py3k/PCbuild9/python.vcproj
   python/branches/py3k/PCbuild9/pythoncore.vcproj
   python/branches/py3k/PCbuild9/pythonw.vcproj
   python/branches/py3k/PCbuild9/w9xpopen.vcproj
Log:
Fixed PGO builds
The intermediate PG instrument build now lands in Platform-pgi and the final 
optimized build in Platform-pgo.

Modified: python/branches/py3k/PCbuild9/build_pgo.bat
==============================================================================
--- python/branches/py3k/PCbuild9/build_pgo.bat (original)
+++ python/branches/py3k/PCbuild9/build_pgo.bat Thu Nov 22 11:25:50 2007
@@ -23,18 +23,19 @@
 if "%1"=="-p" (set platf=%2) & shift & shift & goto CheckOpts
 if "%1"=="-2" (set job=%job2%) & (set clrpath=%path2%) & shift & goto CheckOpts
 
-set folder=%platf%-pgo
-
+set PGI=%platf%-pgi
+set PGO=%platf%-pgo
 
 @echo on
 rem build the instrumented version
-call build -r -p %platf% -c PGInstrument
+call build -p %platf% -c PGInstrument
 
 rem remove .pyc files, .pgc files and execute the job
-%folder%\python.exe rmpyc.py %clrpath%
-del %folder%\*.pgc
-%folder%\python.exe %job%
+%PGI%\python.exe rmpyc.py %clrpath%
+del %PGI%\*.pgc
+%PGI%\python.exe %job%
 
 rem finally build the optimized version
-call build -r -p %platf% -c PGUpdate
+if exist %PGO% del /s /q %PGO%
+call build -p %platf% -c PGUpdate
 

Modified: python/branches/py3k/PCbuild9/bz2.vcproj
==============================================================================
--- python/branches/py3k/PCbuild9/bz2.vcproj    (original)
+++ python/branches/py3k/PCbuild9/bz2.vcproj    Thu Nov 22 11:25:50 2007
@@ -311,6 +311,7 @@
                        <Tool
                                Name="VCLinkerTool"
                                
AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Release\libbz2.lib"
+                               ImportLibrary="$(OutDirPGI)\$(TargetName).lib"
                        />
                        <Tool
                                Name="VCALinkTool"
@@ -375,6 +376,7 @@
                        <Tool
                                Name="VCLinkerTool"
                                
AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Release\libbz2.lib"
+                               ImportLibrary="$(OutDirPGI)\$(TargetName).lib"
                                TargetMachine="17"
                        />
                        <Tool
@@ -439,6 +441,7 @@
                        <Tool
                                Name="VCLinkerTool"
                                
AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Release\libbz2.lib"
+                               ImportLibrary="$(OutDirPGI)\$(TargetName).lib"
                        />
                        <Tool
                                Name="VCALinkTool"
@@ -503,6 +506,7 @@
                        <Tool
                                Name="VCLinkerTool"
                                
AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Release\libbz2.lib"
+                               ImportLibrary="$(OutDirPGI)\$(TargetName).lib"
                                TargetMachine="17"
                        />
                        <Tool

Modified: python/branches/py3k/PCbuild9/make_versioninfo.vcproj
==============================================================================
--- python/branches/py3k/PCbuild9/make_versioninfo.vcproj       (original)
+++ python/branches/py3k/PCbuild9/make_versioninfo.vcproj       Thu Nov 22 
11:25:50 2007
@@ -164,8 +164,6 @@
                </Configuration>
                <Configuration
                        Name="Debug|Win32"
-                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
-                       IntermediateDirectory="$(ConfigurationName)"
                        ConfigurationType="1"
                        InheritedPropertySheets=".\pyproject.vsprops"
                        UseOfMFC="0"

Modified: python/branches/py3k/PCbuild9/pginstrument.vsprops
==============================================================================
--- python/branches/py3k/PCbuild9/pginstrument.vsprops  (original)
+++ python/branches/py3k/PCbuild9/pginstrument.vsprops  Thu Nov 22 11:25:50 2007
@@ -3,8 +3,8 @@
        ProjectType="Visual C++"
        Version="8.00"
        Name="pginstrument"
-       OutputDirectory="$(SolutionDir)$(PlatformName)-pgo\"
-       
IntermediateDirectory="$(SolutionDir)$(PlatformName)-temp-pgo\$(ProjectName)\"
+       OutputDirectory="$(OutDirPGI)"
+       
IntermediateDirectory="$(SolutionDir)$(PlatformName)-temp-pgi\$(ProjectName)\"
        >
        <Tool
                Name="VCCLCompilerTool"
@@ -13,5 +13,11 @@
        <Tool
                Name="VCLinkerTool"
                LinkTimeCodeGeneration="2"
+               
ProfileGuidedDatabase="$(SolutionDir)$(PlatformName)-pgi\$(TargetName).pgd"
+               ImportLibrary="$(OutDirPGI)\$(TargetName).lib"
+       />
+       <UserMacro
+               Name="OutDirPGI"
+               Value="$(SolutionDir)$(PlatformName)-pgi\"
        />
 </VisualStudioPropertySheet>

Modified: python/branches/py3k/PCbuild9/pgupdate.vsprops
==============================================================================
--- python/branches/py3k/PCbuild9/pgupdate.vsprops      (original)
+++ python/branches/py3k/PCbuild9/pgupdate.vsprops      Thu Nov 22 11:25:50 2007
@@ -3,10 +3,12 @@
        ProjectType="Visual C++"
        Version="8.00"
        Name="pgoptimize"
+       OutputDirectory="$(SolutionDir)$(PlatformName)-pgo\"
        InheritedPropertySheets="$(SolutionDir)\pginstrument.vsprops"
        >
        <Tool
                Name="VCLinkerTool"
+               AdditionalManifestDependencies=""
                LinkTimeCodeGeneration="4"
        />
 </VisualStudioPropertySheet>

Modified: python/branches/py3k/PCbuild9/python.vcproj
==============================================================================
--- python/branches/py3k/PCbuild9/python.vcproj (original)
+++ python/branches/py3k/PCbuild9/python.vcproj Thu Nov 22 11:25:50 2007
@@ -365,6 +365,7 @@
                                SubSystem="1"
                                StackReserveSize="2000000"
                                BaseAddress="0x1d000000"
+                               ImportLibrary=""
                        />
                        <Tool
                                Name="VCALinkTool"
@@ -439,6 +440,7 @@
                                SubSystem="1"
                                StackReserveSize="2000000"
                                BaseAddress="0x1d000000"
+                               ImportLibrary=""
                                TargetMachine="17"
                        />
                        <Tool
@@ -513,6 +515,7 @@
                                SubSystem="1"
                                StackReserveSize="2000000"
                                BaseAddress="0x1d000000"
+                               ImportLibrary=""
                        />
                        <Tool
                                Name="VCALinkTool"
@@ -587,6 +590,7 @@
                                SubSystem="1"
                                StackReserveSize="2000000"
                                BaseAddress="0x1d000000"
+                               ImportLibrary=""
                                TargetMachine="17"
                        />
                        <Tool

Modified: python/branches/py3k/PCbuild9/pythoncore.vcproj
==============================================================================
--- python/branches/py3k/PCbuild9/pythoncore.vcproj     (original)
+++ python/branches/py3k/PCbuild9/pythoncore.vcproj     Thu Nov 22 11:25:50 2007
@@ -373,7 +373,7 @@
                                IgnoreDefaultLibraryNames="libc"
                                ProgramDatabaseFile="$(OutDir)$(PyDllName).pdb"
                                BaseAddress="0x1e000000"
-                               ImportLibrary="$(OutDir)$(PyDllName).lib"
+                               ImportLibrary="$(OutDirPGI)$(PyDllName).lib"
                        />
                        <Tool
                                Name="VCALinkTool"
@@ -448,7 +448,7 @@
                                IgnoreDefaultLibraryNames="libc"
                                ProgramDatabaseFile="$(OutDir)$(PyDllName).pdb"
                                BaseAddress="0x1e000000"
-                               ImportLibrary="$(OutDir)$(PyDllName).lib"
+                               ImportLibrary="$(OutDirPGI)$(PyDllName).lib"
                                TargetMachine="17"
                        />
                        <Tool
@@ -523,7 +523,7 @@
                                IgnoreDefaultLibraryNames="libc"
                                ProgramDatabaseFile="$(OutDir)$(PyDllName).pdb"
                                BaseAddress="0x1e000000"
-                               ImportLibrary="$(OutDir)$(PyDllName).lib"
+                               ImportLibrary="$(OutDirPGI)$(PyDllName).lib"
                        />
                        <Tool
                                Name="VCALinkTool"
@@ -598,7 +598,7 @@
                                IgnoreDefaultLibraryNames="libc"
                                ProgramDatabaseFile="$(OutDir)$(PyDllName).pdb"
                                BaseAddress="0x1e000000"
-                               ImportLibrary="$(OutDir)$(PyDllName).lib"
+                               ImportLibrary="$(OutDirPGI)$(PyDllName).lib"
                                TargetMachine="17"
                        />
                        <Tool

Modified: python/branches/py3k/PCbuild9/pythonw.vcproj
==============================================================================
--- python/branches/py3k/PCbuild9/pythonw.vcproj        (original)
+++ python/branches/py3k/PCbuild9/pythonw.vcproj        Thu Nov 22 11:25:50 2007
@@ -349,6 +349,7 @@
                                OutputFile="$(OutDir)\pythonw.exe"
                                StackReserveSize="2000000"
                                BaseAddress="0x1d000000"
+                               ImportLibrary=""
                                TargetMachine="1"
                        />
                        <Tool
@@ -421,6 +422,7 @@
                                OutputFile="$(OutDir)\pythonw.exe"
                                StackReserveSize="2000000"
                                BaseAddress="0x1d000000"
+                               ImportLibrary=""
                                TargetMachine="17"
                        />
                        <Tool
@@ -492,6 +494,7 @@
                                OutputFile="$(OutDir)\pythonw.exe"
                                StackReserveSize="2000000"
                                BaseAddress="0x1d000000"
+                               ImportLibrary=""
                                TargetMachine="1"
                        />
                        <Tool
@@ -564,6 +567,7 @@
                                OutputFile="$(OutDir)\pythonw.exe"
                                StackReserveSize="2000000"
                                BaseAddress="0x1d000000"
+                               ImportLibrary=""
                                TargetMachine="17"
                        />
                        <Tool

Modified: python/branches/py3k/PCbuild9/w9xpopen.vcproj
==============================================================================
--- python/branches/py3k/PCbuild9/w9xpopen.vcproj       (original)
+++ python/branches/py3k/PCbuild9/w9xpopen.vcproj       Thu Nov 22 11:25:50 2007
@@ -331,6 +331,7 @@
                                Name="VCLinkerTool"
                                GenerateDebugInformation="false"
                                SubSystem="1"
+                               ImportLibrary=""
                        />
                        <Tool
                                Name="VCALinkTool"
@@ -400,6 +401,7 @@
                                Name="VCLinkerTool"
                                GenerateDebugInformation="false"
                                SubSystem="1"
+                               ImportLibrary=""
                                TargetMachine="17"
                        />
                        <Tool
@@ -469,6 +471,7 @@
                                Name="VCLinkerTool"
                                GenerateDebugInformation="false"
                                SubSystem="1"
+                               ImportLibrary=""
                        />
                        <Tool
                                Name="VCALinkTool"
@@ -538,6 +541,7 @@
                                Name="VCLinkerTool"
                                GenerateDebugInformation="false"
                                SubSystem="1"
+                               ImportLibrary=""
                                TargetMachine="17"
                        />
                        <Tool
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to