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: