You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +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:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user