$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
From: Franz Schnyder (fschnyder_at_[hidden])
Date: 2008-07-31 04:22:11
Hello
During our build I ran into the limit of 2047 characters for the command line on
windows. I work on Windows XP and found out that the limit is 8191. I applied
the following "patch" to execnt.c in BJam to change the limit for Windows XP.
Maybe this would also help others with long command lines.
- Franz
int maxline()
{
OSVERSIONINFO os_info;
os_info.dwOSVersionInfoSize = sizeof(os_info);
GetVersionEx( &os_info );
-
- return (os_info.dwMajorVersion == 3)
- ? 996 /* NT 3.5.1 */
- : 2047 /* NT >= 4.x */
- ;
+ if(os_info.dwMajorVersion >= 5)
+ {
+ return 8191; /* XP > */
+ }
+ else if(os_info.dwMajorVersion == 4)
+ {
+ return 2047; /* NT 4.x */
+ }
+ else
+ {
+ return 996; /* NT 3.5.1 */
+ }
}