Skip to content

Instantly share code, notes, and snippets.

@camillol
Created February 6, 2012 23:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camillol/1755988 to your computer and use it in GitHub Desktop.
Save camillol/1755988 to your computer and use it in GitHub Desktop.
Wine Clang fix
diff --git a/tools/winebuild/utils.c b/tools/winebuild/utils.c
index 09f9b73..ed198f8 100644
--- a/tools/winebuild/utils.c
+++ b/tools/winebuild/utils.c
@@ -345,10 +345,11 @@ struct strarray *get_as_command(void)
if (!as_command)
{
- static const char * const commands[] = { "gas", "as", NULL };
- as_command = find_tool( "as", commands );
+ static const char * const commands[] = { "clang", NULL };
+ as_command = find_tool( "clang", commands );
}
strarray_add_one( args, as_command );
+ strarray_add_one( args, "-c" );
if (force_pointer_size)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment