- May
- 13,199
- 180
I have this command line for my "4UTILS" project's post-build event.
The first few lines of u:\postbuild.btm (with some debug ECHOs) are
When I run it manually, it does what I want.
When devenv runs it, it fails.
It works fine if I change the post-build event command line to use TCC v30.
This was working OK recently so I suspect the latest build of v31.
Code:
d:\tc31\tcc.exe /c u:\postbuild.btm $(TargetPath)
The first few lines of u:\postbuild.btm (with some debug ECHOs) are
Code:
REM %1 is DevStudio's $(TargetPath)
echo _4VER = %_4ver
echo %%1 = %1
dumpbin /headers %1 | ffind /k /m /t"number of sections"
echo xx = %@execstr[dumpbin /headers %1 | ffind /k /m /t"number of sections"]
set nSections=%@word[0,%@execstr[dumpbin /headers %1 | ffind /k /m /t"number of sections"]]
echo nSections = %nSections
When I run it manually, it does what I want.
Code:
v:\> d:\tc31\tcc.exe /c u:\postbuild.btm p:\4Utils\x64\Release\4Utils64.dll
_4VER = 31.01
%1 = p:\4Utils\x64\Release\4Utils64.dll
6 number of sections
xx = 6 number of sections
nSections = 6
size .text .rdata .data .pdata _RDATA .reloc
Before 326144 31B40 1824E 5500 2388 1F4 9CC
After 326144 31B40 1824E 5500 2388 1F4 9CC
When devenv runs it, it fails.
It works fine if I change the post-build event command line to use TCC v30.
This was working OK recently so I suspect the latest build of v31.