1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-20 13:54:14 +01:00

Don't build SDKs that aren't present.

This commit is contained in:
David Anderson 2021-11-01 14:31:13 -07:00
parent 33c5be645f
commit 3f583d7c4e

View File

@ -157,6 +157,8 @@ class MMSConfig(object):
if sdk.shouldBuild(self.all_targets):
if builder.options.hl2sdk_root:
sdk_path = os.path.join(builder.options.hl2sdk_root, sdk.folder)
if not os.path.exists(sdk_path):
sdk_path = None
else:
sdk_path = ResolveEnvPath(sdk.envvar, sdk.folder)
if sdk_path is None: