Changed add_target to include variables rather than hard-coded strings

This commit is contained in:
Mario Melara 2015-12-01 11:55:38 -08:00
parent 8f56f5cfcc
commit 89fbe4fdfa

View file

@ -10,8 +10,8 @@ class Bgq(Architecture):
def __init__(self):
super(Bgq, self).__init__('cray')
self.add_target('power7', Target('power7'))
self.add_target('powerpc', Target('powerpc'))
self.add_target(self.front_end, Target(self.front_end))
self.add_target(self.back_end, Target(self.back_end))
@classmethod
def detect(self):