MCPcopy Create free account
hub / github.com/kivy/python-for-android / get_clang_exe

Method get_clang_exe

pythonforandroid/archs.py:93–107  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 = {}

Callers 6

clang_exeMethod · 0.95
clang_exe_cxxMethod · 0.95
build_archMethod · 0.80
get_recipe_envMethod · 0.80
test_get_recipe_envMethod · 0.80

Calls 1

formatMethod · 0.80

Tested by 1

test_get_recipe_envMethod · 0.64