mirror of https://github.com/godotengine/godot
detect can build from env var
This commit is contained in:
parent
2582793d40
commit
246589831f
|
|
@ -99,7 +99,7 @@ for x in sorted(glob.glob("platform/*")):
|
|||
platform_exporters.append(platform_name)
|
||||
if os.path.exists(x + "/api/api.cpp"):
|
||||
platform_apis.append(platform_name)
|
||||
if detect.can_build():
|
||||
if os.getenv("GODOT_CAN_BUILD_" + platform_name.upper()) or detect.can_build():
|
||||
x = x.replace("platform/", "") # rest of world
|
||||
x = x.replace("platform\\", "") # win32
|
||||
platform_list += [x]
|
||||
|
|
|
|||
Loading…
Reference in New Issue