(env)
| 10 | SCons.Warnings.enableWarningClass(ToolMCSWarning) |
| 11 | |
| 12 | def _detect(env): |
| 13 | try: |
| 14 | return env['mcs'] |
| 15 | except KeyError: |
| 16 | pass |
| 17 | |
| 18 | mcs = env.WhereIs('mcs') |
| 19 | if mcs: |
| 20 | return mcs |
| 21 | |
| 22 | SCons.Warnings.warn(MCSNotFound, 'Could not find mcs executable') |
| 23 | |
| 24 | def exists(env): |
| 25 | env.Detect('mcs') |