@@ -108,14 +108,14 @@ def __init__(self, name, environment, kwargs):
108
108
self .cargs = []
109
109
self .libs = []
110
110
if 'native' in kwargs and environment .is_cross_build ():
111
- want_cross = not kwargs ['native' ]
111
+ self . want_cross = not kwargs ['native' ]
112
112
else :
113
- want_cross = environment .is_cross_build ()
113
+ self . want_cross = environment .is_cross_build ()
114
114
self .name = name
115
115
116
116
# When finding dependencies for cross-compiling, we don't care about
117
117
# the 'native' pkg-config
118
- if want_cross :
118
+ if self . want_cross :
119
119
if 'pkgconfig' not in environment .cross_info .config ['binaries' ]:
120
120
if self .required :
121
121
raise DependencyException ('Pkg-config binary missing from cross file' )
@@ -142,7 +142,7 @@ def __init__(self, name, environment, kwargs):
142
142
if self .required :
143
143
raise DependencyException ('Pkg-config not found.' )
144
144
return
145
- if want_cross :
145
+ if self . want_cross :
146
146
self .type_string = 'Cross'
147
147
else :
148
148
self .type_string = 'Native'
@@ -551,17 +551,17 @@ def __init__(self, environment, kwargs):
551
551
self .environment = environment
552
552
self .libdir = ''
553
553
if 'native' in kwargs and environment .is_cross_build ():
554
- want_cross = not kwargs ['native' ]
554
+ self . want_cross = not kwargs ['native' ]
555
555
else :
556
- want_cross = environment .is_cross_build ()
556
+ self . want_cross = environment .is_cross_build ()
557
557
try :
558
558
self .boost_root = os .environ ['BOOST_ROOT' ]
559
559
if not os .path .isabs (self .boost_root ):
560
560
raise DependencyException ('BOOST_ROOT must be an absolute path.' )
561
561
except KeyError :
562
562
self .boost_root = None
563
563
if self .boost_root is None :
564
- if want_cross :
564
+ if self . want_cross :
565
565
raise DependencyException ('BOOST_ROOT is needed while cross-compiling' )
566
566
if mesonlib .is_windows ():
567
567
self .boost_root = self .detect_win_root ()
0 commit comments