mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb/config: Fix os and arch conditional logic.
Correctly split the argument list and check each element. Closes #3743
This commit is contained in:
parent
c80ab5b79c
commit
0956a2c089
@ -959,7 +959,8 @@ class file:
|
||||
isos = False
|
||||
if isvalid:
|
||||
os = self.define('_os')
|
||||
for l in ls:
|
||||
ls = ' '.join(ls).split()
|
||||
for l in ls[1:]:
|
||||
if l in os:
|
||||
isos = True
|
||||
break
|
||||
@ -969,7 +970,8 @@ class file:
|
||||
isnos = True
|
||||
if isvalid:
|
||||
os = self.define('_os')
|
||||
for l in ls:
|
||||
ls = ' '.join(ls).split()
|
||||
for l in ls[1:]:
|
||||
if l in os:
|
||||
isnos = False
|
||||
break
|
||||
@ -979,7 +981,8 @@ class file:
|
||||
isarch = False
|
||||
if isvalid:
|
||||
arch = self.define('_arch')
|
||||
for l in ls:
|
||||
ls = ' '.join(ls).split()
|
||||
for l in ls[1:]:
|
||||
if l in arch:
|
||||
isarch = True
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user