Notes |
|
(0029870)
|
Peter Kuemmel
|
2012-07-01 18:14
|
|
Yes, I thought 8000 would be enough and other cases are "esoteric", but it seems this was wrong.
The variables used by the rule are also written there:
build build\bin\kst2d.exe: CXX_EXECUTABLE_LINKER src\kst\CMakeFiles\kst2.dir ...
FLAGS = /DWIN32 /D_WINDOWS /W3 ,,,
LINK_FLAGS = /STACK:10000000 /machine:X86 ...
LINK_LIBRARIES = E:\sandbox\qt\_4.8_zehner\lib\qtmaind.lib ...
POST_BUILD = cd .
PRE_LINK = cd .
TARGET_IMPLIB = src\kst\kst2d.lib
TARGET_PDB = build\bin\kst2d.pdb
so we could simply consider the length of all the variable assignments.
I've pushed a fix to next. |
|
|
(0029871)
|
Josh Faust
|
2012-07-02 03:02
|
|
That's still not quite exact, as there's still the overhead from the rule itself, e.g.:
$PRE_LINK && C:\Users\josh\packages\cmake\build\bin\Release\cmake.exe -E vs_link_dll c:\PROGRA~2\MICROS~2.0\VC\bin\link.exe /nologo $in /out:$out /implib:$TARGET_IMPLIB /pdb:$TARGET_PDB /dll /version:0.0 $LINK_FLAGS $LINK_LIBRARIES && $POST_BUILD
has about 170 non-variable characters in it. To be safe you may still want to up the 192 character buffer.
Your change does fix my use case though, thanks! Not sure what the policy here is, should I close this ticket? Actually, can I even do that? I don't see any way for me to edit the ticket. |
|
|
(0029872)
|
Peter Kuemmel
|
2012-07-02 04:37
|
|
OK, also the length of the command line is used.
It is still not 100% perfect because you could write
rules which use a variable multiple times. But I think
such cases then are really "esoteric".
I also could only write comments here, I assume the
release manager will close it. |
|
|
(0029888)
|
Peter Kuemmel
|
2012-07-03 05:44
|
|
On 02.07.2012 17:40, Bill Hoffman wrote:
>
> Can we just put the link step into the response files?
>
The code now catches nearly all cases. I don't think
it will fail in any real-live usage. |
|
|
(0031814)
|
David Cole
|
2012-12-03 07:46
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|