Returns the full path of the clang/clang++ compiler, supports two kwargs: - `with_target`: prepend `target` to clang - `plus_plus`: will return the clang++ compiler (defaults to `False`)
(self, with_target=False, plus_plus=False)
| 91 | return self.get_clang_exe(plus_plus=True) |
| 92 | |
| 93 | def get_clang_exe(self, with_target=False, plus_plus=False): |
| 94 | """Returns the full path of the clang/clang++ compiler, supports two |
| 95 | kwargs: |
| 96 | |
| 97 | - `with_target`: prepend `target` to clang |
| 98 | - `plus_plus`: will return the clang++ compiler (defaults to `False`) |
| 99 | """ |
| 100 | compiler = 'clang' |
| 101 | if with_target: |
| 102 | compiler = '{target}-{compiler}'.format( |
| 103 | target=self.target, compiler=compiler |
| 104 | ) |
| 105 | if plus_plus: |
| 106 | compiler += '++' |
| 107 | return join(self.ctx.ndk.llvm_bin_dir, compiler) |
| 108 | |
| 109 | def get_env(self, with_flags_in_cc=True): |
| 110 | env = {} |