fixed floating 'target'

This commit is contained in:
Gregory Becker 2016-03-02 16:12:32 -08:00
parent 65d4169f00
commit 16d8c25b23

View file

@ -227,7 +227,7 @@ def compiler_for_spec(compiler_spec, operating_system):
compilers = [c for c in compilers_for_spec(compiler_spec)
if c.strategy == operating_system.compiler_strategy]
if len(compilers) < 1:
raise NoCompilerForSpecError(compiler_spec, target)
raise NoCompilerForSpecError(compiler_spec, operating_system)
if len(compilers) > 1:
raise CompilerSpecInsufficientlySpecificError(compiler_spec)
return compilers[0]