25 Jan
2013
25 Jan
'13
10:42 a.m.
Charles Davis <cdavis5x(a)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(a)winehq.org