Fix bug in utils.py, causing SDK bots to fail

https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket.appspot.com/8877199214187649920/+/steps/upload_sdk/0/stdout

Change-Id: I08d70c64d8ea17645c5071f58aeafd0d81073137
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151780
Auto-Submit: Liam Appelbe <liama@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
This commit is contained in:
Liam Appelbe 2020-06-18 18:21:36 +00:00 committed by commit-bot@chromium.org
parent 10c5c113f3
commit 4f1294e495

View file

@ -311,7 +311,7 @@ def IsCrossBuild(target_os, arch):
def GetBuildConf(mode, arch, conf_os=None, sanitizer=None): def GetBuildConf(mode, arch, conf_os=None, sanitizer=None):
if conf_os != GuessOS() and conf_os != "host": if conf_os is not None and conf_os != GuessOS() and conf_os != "host":
return '%s%s%s' % (GetBuildMode(mode), conf_os.title(), arch.upper()) return '%s%s%s' % (GetBuildMode(mode), conf_os.title(), arch.upper())
else: else:
# Ask for a cross build if the host and target architectures don't match. # Ask for a cross build if the host and target architectures don't match.