summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2019-04-13 11:28:22 -0400
committerBradley Sepos <[email protected]>2019-04-13 14:05:22 -0400
commitd76f5570c1671e9a9acb6b291017cf5a57d0cff9 (patch)
tree800c8587d5bd662d8696e4366415da834d445265
parente757991183c2c2ddda14d23c160c2a0976739341 (diff)
make: Improve handling of cross argument in configure.py.
-rw-r--r--make/configure.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/make/configure.py b/make/configure.py
index 7b7d29641..326c387b0 100644
--- a/make/configure.py
+++ b/make/configure.py
@@ -1571,15 +1571,16 @@ try:
# cannot parse args twice, so extract the info we need here
cross = None
for i in range(len(sys.argv)):
- cross_pattern = re.compile( '^--cross=(.*)$' )
+ cross_pattern = re.compile( '^--cross=(.+)$' )
m = cross_pattern.match( sys.argv[i] )
if m:
cross = sys.argv[i][8:]
continue
- cross_pattern = re.compile( '^--cross(.*)$' )
+ cross_pattern = re.compile( '^--cross$' )
m = cross_pattern.match( sys.argv[i] )
- if m and (i + 1 < len(sys.argv)):
+ if m and ((i + 1) < len(sys.argv)):
cross = sys.argv[i+1]
+ cross = None if cross == '' else cross
continue
# create CLI and parse