Skip to content

Commit

Permalink
Fix minimal rebuild.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvander committed Jul 20, 2021
1 parent b383302 commit 7c3cb49
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion AMBuildScript
@@ -1,4 +1,5 @@
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
import collections
import os, sys
import traceback

Expand Down Expand Up @@ -36,7 +37,7 @@ CSGO = {
'mac': ['x86_64']
}

PossibleSDKs = {
SDKMap = {
'episode1': SDK('HL2SDK', '2.ep1', '1', 'EPISODEONE', WinLinux, 'episode1'),
'ep2': SDK('HL2SDKOB', '2.ep2', '3', 'ORANGEBOX', WinLinux, 'orangebox'),
'css': SDK('HL2SDKCSS', '2.css', '6', 'CSS', WinLinuxMac, 'css'),
Expand All @@ -60,6 +61,11 @@ PossibleSDKs = {
'doi': SDK('HL2SDKDOI', '2.doi', '20', 'DOI', WinLinuxMac, 'doi'),
}

# Stable sorting for command equivalence in AMBuild.
PossibleSDKs = collections.OrderedDict()
for key in sorted(SDKMap.keys()):
PossibleSDKs[key] = SDKMap[key]

def ResolveEnvPath(env, folder):
if env in os.environ:
path = os.environ[env]
Expand Down

0 comments on commit 7c3cb49

Please sign in to comment.