Skip to content
Snippets Groups Projects
Commit 77960ab7 authored by Chip Davis's avatar Chip Davis Committed by Alexandre Julliard
Browse files

winebuild: Specify an object format to windres.

parent 7d295d38
No related branches found
No related tags found
No related merge requests found
......@@ -623,6 +623,7 @@ void output_res_o_file( DLLSPEC *spec )
{
unsigned int i;
char *res_file = NULL;
const char *format;
int fd;
struct strarray *args;
......@@ -681,7 +682,21 @@ void output_res_o_file( DLLSPEC *spec )
free( output_buffer );
args = find_tool( "windres", NULL );
switch (target_cpu)
{
case CPU_x86:
format = "pe-i386";
break;
case CPU_x86_64:
format = "pe-x86-64";
break;
default:
format = NULL;
break;
}
strarray_add( args, "-i", res_file, "-o", output_file_name, NULL );
if (format)
strarray_add( args, "-F", format, NULL );
spawn( args );
strarray_free( args );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment