Changeset 0956a2c in rtems-source-builder


Ignore:
Timestamp:
May 6, 2019, 11:13:12 PM (12 days ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
72271f6
Parents:
c80ab5b
Message:

sb/config: Fix os and arch conditional logic.

Correctly split the argument list and check each element.

Closes #3743

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/config.py

    rc80ab5b r0956a2c  
    960960        if isvalid:
    961961            os = self.define('_os')
    962             for l in ls:
     962            ls = ' '.join(ls).split()
     963            for l in ls[1:]:
    963964                if l in os:
    964965                    isos = True
     
    970971        if isvalid:
    971972            os = self.define('_os')
    972             for l in ls:
     973            ls = ' '.join(ls).split()
     974            for l in ls[1:]:
    973975                if l in os:
    974976                    isnos = False
     
    980982        if isvalid:
    981983            arch = self.define('_arch')
    982             for l in ls:
     984            ls = ' '.join(ls).split()
     985            for l in ls[1:]:
    983986                if l in arch:
    984987                    isarch = True
Note: See TracChangeset for help on using the changeset viewer.