Skip to content

Commit c3d0940

Browse files
committed
[build-script] Make sure that StageArgs are never passed a StageArgs as their args.
No good reason to do this and simplifies the state space.
1 parent b12ab96 commit c3d0940

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/swift_build_support/swift_build_support/compiler_stage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class StageArgs(object):
1414
def __init__(self, stage, args):
1515
self.stage = stage
1616
self.args = args
17+
assert(not isinstance(self.args, StageArgs))
1718

1819
def __getattr__(self, key):
1920
real_key = '{}{}'.format(key, self.stage.postfix)

0 commit comments

Comments
 (0)