[PATCH] winebuild: Use Clang to assemble if found. (try 4)

Alexandre Julliard julliard at winehq.org
Fri Jan 25 10:42:14 CST 2013


Charles Davis <cdavis5x at gmail.com> writes:

> @@ -346,13 +352,26 @@ struct strarray *get_as_command(void)
>      struct strarray *args = strarray_init();
>  
>      if (!as_command)
> +        as_command = find_tool( "clang", NULL );
> +
> +    if (!as_command)
>      {
>          static const char * const commands[] = { "gas", "as", NULL };
>          as_command = find_tool( "as", commands );
>      }
> +
> +    if (!as_command)
> +        fatal_error( "cannot find suitable assembler\n" );
> +
>      strarray_add_one( args, as_command );
>  
> -    if (force_pointer_size)
> +    if (strstr( as_command, "clang" ))

It's looking better, but strstr is not appropriate here.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list