mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
SCons: add methods.using_clang
to check used compiler
Also rename `use_gcc` to `using_gcc` to make it clear that it returns a config but does not alter it.
This commit is contained in:
parent
6a33727cb1
commit
e4a96164b6
4 changed files with 8 additions and 6 deletions
|
@ -668,5 +668,8 @@ def get_compiler_version(env):
|
|||
else:
|
||||
return None
|
||||
|
||||
def use_gcc(env):
|
||||
def using_gcc(env):
|
||||
return 'gcc' in os.path.basename(env["CC"])
|
||||
|
||||
def using_clang(env):
|
||||
return 'clang' in os.path.basename(env["CC"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue