fix ordering of SWIFT_ACTIVE_COMPILATION_CONDITIONS

This commit is contained in:
Ivan Smolin 2020-06-18 11:09:28 +03:00
parent 957fb642a4
commit 3f81529c14
1 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,8 @@ from __future__ import unicode_literals # python 2/3 support
from .raw_models import *
from core.models import Selector
from collections import OrderedDict
class XCConfig(XCConfigTuple):
DISTIBUTION_TYPE_KEY = "DISTRIBUTION_TYPE"
@ -41,10 +43,10 @@ class XCConfig(XCConfigTuple):
@staticmethod
def __make_dict_from_selectors(selectors):
# compatibility mode
return { s.key : (XCConfig.__account_type_from_distribution_type(s.value) if s.key == XCConfig.DISTIBUTION_TYPE_KEY else s.value) for s in selectors }
return OrderedDict((s.key, (XCConfig.__account_type_from_distribution_type(s.value) if s.key == XCConfig.DISTIBUTION_TYPE_KEY else s.value)) for s in selectors)
# normal mode
# return { s.key : s.value for s in selectors }
# return OrderedDict((s.key, s.value) for s in selectors)
@staticmethod
def __modify_selector_if_needed(selector):