winegcc: When specifying -m32, force i386 cpu when compiling on x86_64 boxes.

This commit is contained in:
Eric Pouech 2010-04-19 22:33:40 +02:00 committed by Alexandre Julliard
parent d4dfcc1f32
commit 22da105b4d
1 changed files with 2 additions and 0 deletions

View File

@ -1257,6 +1257,8 @@ int main(int argc, char **argv)
opts.unicode_app = 1;
else if (strcmp("-m32", argv[i]) == 0)
{
if (opts.target_cpu == CPU_x86_64)
opts.target_cpu = CPU_x86;
opts.force_pointer_size = 4;
raw_linker_arg = 1;
}