mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
Change default build to release, to be consistent with unix build.
Make it possible to set the default from builenv.bat. Per request from Dave Page
This commit is contained in:
parent
5574c9f3a5
commit
62d25256f1
@ -1,4 +1,4 @@
|
|||||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.38 2007/03/29 15:30:52 mha Exp $ -->
|
<!-- $PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.39 2007/04/18 10:14:06 mha Exp $ -->
|
||||||
|
|
||||||
<chapter id="install-win32">
|
<chapter id="install-win32">
|
||||||
<title>Installation on <productname>Windows</productname></title>
|
<title>Installation on <productname>Windows</productname></title>
|
||||||
@ -186,17 +186,17 @@
|
|||||||
<title>Building</title>
|
<title>Building</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
To build all of PostgreSQL in debug configuration (the default), run the
|
To build all of PostgreSQL in release configuration (the default), run the
|
||||||
command:
|
command:
|
||||||
<screen>
|
<screen>
|
||||||
<userinput>
|
<userinput>
|
||||||
build
|
build
|
||||||
</userinput>
|
</userinput>
|
||||||
</screen>
|
</screen>
|
||||||
To build all of PostgreSQL in release configuration, run the command:
|
To build all of PostgreSQL in debug configuration, run the command:
|
||||||
<screen>
|
<screen>
|
||||||
<userinput>
|
<userinput>
|
||||||
build RELEASE
|
build DEBUG
|
||||||
</userinput>
|
</userinput>
|
||||||
</screen>
|
</screen>
|
||||||
To build just a single project, for example psql, run the commands:
|
To build just a single project, for example psql, run the commands:
|
||||||
@ -205,7 +205,14 @@
|
|||||||
build psql
|
build psql
|
||||||
</userinput>
|
</userinput>
|
||||||
<userinput>
|
<userinput>
|
||||||
build RELEASE psql
|
build DEBUG psql
|
||||||
|
</userinput>
|
||||||
|
</screen>
|
||||||
|
To change the default build configuration to debug, put the following
|
||||||
|
in the buildenv.bat file:
|
||||||
|
<screen>
|
||||||
|
<userinput>
|
||||||
|
set CONFIG=Debug
|
||||||
</userinput>
|
</userinput>
|
||||||
</screen>
|
</screen>
|
||||||
</para>
|
</para>
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
@echo off
|
@echo off
|
||||||
REM $PostgreSQL: pgsql/src/tools/msvc/build.bat,v 1.7 2007/03/17 14:01:01 mha Exp $
|
REM $PostgreSQL: pgsql/src/tools/msvc/build.bat,v 1.8 2007/04/18 10:14:06 mha Exp $
|
||||||
|
|
||||||
SETLOCAL
|
SETLOCAL
|
||||||
SET STARTDIR=%CD%
|
SET STARTDIR=%CD%
|
||||||
|
SET CONFIG=
|
||||||
if exist src\tools\msvc\buildenv.bat call src\tools\msvc\buildenv.bat
|
if exist src\tools\msvc\buildenv.bat call src\tools\msvc\buildenv.bat
|
||||||
if exist buildenv.bat call buildenv.bat
|
if exist buildenv.bat call buildenv.bat
|
||||||
|
|
||||||
@ -10,12 +11,20 @@ perl mkvcbuild.pl
|
|||||||
if errorlevel 1 goto :eof
|
if errorlevel 1 goto :eof
|
||||||
|
|
||||||
if exist ..\msvc if exist ..\..\..\src cd ..\..\..
|
if exist ..\msvc if exist ..\..\..\src cd ..\..\..
|
||||||
SET CONFIG=
|
set CFG=
|
||||||
if "%1" == "" set CONFIG=Debug
|
if "%1" == "DEBUG" (
|
||||||
if "%CONFIG%" == "" if "%1" == "DEBUG" set CONFIG=Debug
|
set CONFIG=Debug
|
||||||
if "%CONFIG%" == "" if "%1" == "RELEASE" set CONFIG=Release
|
set CFG=1
|
||||||
if not "%CONFIG%" == "" shift
|
)
|
||||||
if "%CONFIG%" == "" set CONFIG=Debug
|
if "%1" == "RELEASE" (
|
||||||
|
set CONFIG=Release
|
||||||
|
set CFG=1
|
||||||
|
)
|
||||||
|
if "%CONFIG%" == "" set CONFIG=Release
|
||||||
|
|
||||||
|
if "%CFG%" == "1" shift
|
||||||
|
|
||||||
|
echo Building %CONFIG%
|
||||||
|
|
||||||
if "%1" == "" msbuild pgsql.sln /verbosity:detailed /p:Configuration=%CONFIG%
|
if "%1" == "" msbuild pgsql.sln /verbosity:detailed /p:Configuration=%CONFIG%
|
||||||
if not "%1" == "" vcbuild %1.vcproj %CONFIG%
|
if not "%1" == "" vcbuild %1.vcproj %CONFIG%
|
||||||
|
Loading…
Reference in New Issue
Block a user