Commit d292c7ec authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

winebuild: Refactor find_tool().

parent b1ab51b5
......@@ -244,12 +244,10 @@ struct strarray find_tool( const char *name, const char * const *names )
names++;
}
if (!file)
{
if (cc_command.count) file = find_clang_tool( cc_command, name );
if (!file && !(file = find_binary( "llvm", name )))
file = find_clang_tool( empty_strarray, strmake( "llvm-%s", name ));
}
if (!file && cc_command.count) file = find_clang_tool( cc_command, name );
if (!file) file = find_binary( "llvm", name );
if (!file) file = find_clang_tool( empty_strarray, strmake( "llvm-%s", name ));
if (!file) fatal_error( "cannot find the '%s' tool\n", name );
strarray_add( &ret, file );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment