mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
parent
132e2f458d
commit
8d51618949
134 changed files with 1107 additions and 1110 deletions
|
@ -660,3 +660,10 @@ def detect_darwin_sdk_path(platform, env):
|
|||
print("Failed to find SDK path while running xcrun --sdk {} --show-sdk-path.".format(sdk_name))
|
||||
raise
|
||||
|
||||
def get_compiler_version(env):
|
||||
version = decode_utf8(subprocess.check_output([env['CXX'], '--version']).strip())
|
||||
match = re.search('[0-9][0-9.]*', version)
|
||||
if match is not None:
|
||||
return match.group().split('.')
|
||||
else:
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue