Type should be `compileTarget` and `compileTarget` should actually be `CompileTarget`.

Can you move this variable inside main?