eliminateSystemDependentCode
The build descriptor option eliminateSystemDependentCode indicates whether, at validation time, EGL ignores code that will never run in the target system. Valid values are yes (the default) and no. Specify no only if the output of the current generation will run in multiple systems.
The option eliminateSystemDependentCode is meaningful only in relation to the system function sysVar.systemType. That function does not itself affect what code is validated at generation time. For example, the following add statement may be validated even if you are generating for Windows:
if (sysVar.systemType IS AIX) add myRecord; endTo avoid validating code that will never run in the target system, take either of the following actions:
- Set the build descriptor option EliminateSystemDependentCode to yes. In the current example, the add statement is not validated if you set that build descriptor option to yes. Be aware, however, that the generator can eliminate system-dependent code only if the logical expression (in this case, sysVar.systemType IS AIX) is simple enough to evaluate at generation time.
- Alternatively, move the statements that you do not want to validate to a second program; then, let the original program call the new program conditionally:
if (sysVar.systemType IS AIX) call myAddProgram myRecord; end
Related concepts
Build descriptor part
Related reference
Build descriptor options