From eb097ad804eefe9bb91d1bf00d70bcde9c2731b6 Mon Sep 17 00:00:00 2001 From: Aaron Boman Date: Sat, 8 Oct 2016 17:23:33 -0500 Subject: [PATCH] Fix options bug in gcc.py --- src/tools/gcc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tools/gcc.py b/src/tools/gcc.py index bc810e489..498008dc0 100644 --- a/src/tools/gcc.py +++ b/src/tools/gcc.py @@ -103,11 +103,13 @@ def init(version = None, command = None, options = None): # The command. command = to_seq(common.get_invocation_command('gcc', 'g++', command)) # The root directory of the tool install. - root = feature.get_values('', options) ; + root = feature.get_values('', options) + root = root[0] if root else '' # The bin directory where to find the command to execute. bin = None # The flavor of compiler. flavor = feature.get_values('', options) + flavor = flavor[0] if flavor else '' # Autodetect the root and bin dir if not given. if command: if not bin: