#1
|
|||
|
|||
How to set VB6 Compiler Optimization?
Is there anyway to set the VB6 compiler options in VisualBuild, such as:
"Optimize for Fast Code" "Optimize for Small Code" |
#2
|
|||
|
|||
You could use a Replace in File Action to do that. The OptimizationType is 1 for Small Code and 0 for Fast Code. This step can be copied and pasted into VBP:
<step action='Replace in File' type='0'> <FileIn>%VBP_FILE%</FileIn> <FileOut>%VBP_FILE%</FileOut> <Find>OptimizationType=\d</Find> <Replace>OptimizationType=1</Replace> <indent type='3'>1</indent> <name>Set Opt</name> </step> You could use this in conjunction with a Process Files step if you have several VBPs to update (see the Recurse.bld sample). |
|
|