(env)
| 10 | SCons.Warnings.enableWarningClass(ToolRustcWarning) |
| 11 | |
| 12 | def _detect(env): |
| 13 | try: |
| 14 | return env['rustc'] |
| 15 | except KeyError: |
| 16 | pass |
| 17 | |
| 18 | cargo = env.WhereIs('rustc') |
| 19 | if cargo: |
| 20 | return cargo |
| 21 | |
| 22 | SCons.Warnings.warn(RustcNotFound, 'Could not detect rustc') |
| 23 | |
| 24 | |
| 25 | def exists(env): |