winebuild: Use find_clang_tool for ld and nm tools.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-11-10 17:48:26 +01:00 committed by Alexandre Julliard
parent d86580b69f
commit c41059bcba
1 changed files with 2 additions and 2 deletions

View File

@ -273,9 +273,9 @@ struct strarray find_tool( const char *name, const char * const *names )
names++;
}
if (!file && names == alt_names + 1)
if (!file && strcmp( name, "as" )) /* llvm-as is not a gas replacement */
{
if (cc_command.count) file = find_clang_tool( cc_command, "lld-link" );
if (cc_command.count) file = find_clang_tool( cc_command, name );
if (!file && !(file = find_binary( "llvm", name )))
{
struct strarray clang = empty_strarray;