Author: faridz
Date: Wed Oct 31 07:49:24 2007
New Revision: 590686
URL: http://svn.apache.org/viewvc?rev=590686&view=rev
Log:
2007-10-31 Farid Zaripov <[EMAIL PROTECTED]>
* projectdef.js (projectCreateVCProject): Generate source pdb
in OutDir only for static libraries. For the other projects
generate the binary pdb in OutDir, and source pdb in IntDir.
Modified:
incubator/stdcxx/branches/4.2.x/etc/config/windows/projectdef.js
Modified: incubator/stdcxx/branches/4.2.x/etc/config/windows/projectdef.js
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/branches/4.2.x/etc/config/windows/projectdef.js?rev=590686&r1=590685&r2=590686&view=diff
==============================================================================
--- incubator/stdcxx/branches/4.2.x/etc/config/windows/projectdef.js (original)
+++ incubator/stdcxx/branches/4.2.x/etc/config/windows/projectdef.js Wed Oct 31
07:49:24 2007
@@ -440,7 +440,13 @@
if (null != this.PrepOpts)
compiler.GeneratePreprocessedFile = this.PrepOpts;
compiler.DebugInformationFormat = debugEnabled;
- compiler.ProgramDataBaseFileName = changeFileExt(OutFile, "pdb");
+
+ if (typeStaticLibrary == conf.ConfigurationType)
+ {
+ // generate the source pdb in the OutDir
+ compiler.ProgramDataBaseFileName = changeFileExt(OutFile,
"pdb");
+ }
+
compiler.SuppressStartupBanner = true;
compiler.WarningLevel = warningLevel_3;
setProperty(compiler.Detect64BitPortabilityProblems, false);
@@ -510,8 +516,7 @@
linker.LinkIncremental = linkIncrementalNo;
linker.SuppressStartupBanner = true;
linker.GenerateDebugInformation = true;
- // use the compiler's .pdb
- linker.ProgramDatabaseFile = "";
+ linker.ProgramDatabaseFile = changeFileExt(OutFile, "pdb");
linker.IgnoreDefaultLibraryNames = IngoreLibs;
linker.SubSystem = this.SubSystem;