Skip to content

Commit

Permalink
windres-wrapper: Fix --target=pe-i386
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterNobody authored and mstorsjo committed Feb 9, 2020
1 parent ee894b6 commit 130bbed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions wrappers/windres-wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ static void print_help(void) {
" res Binary Windows Resource\n"
" coff COFF object\n"
"Targets:\n"
" armv7-w64-mingw32\n"
" aarch64-w64-mingw32\n"
" i686-w64-mingw32\n"
" x86_86-w64-mingw32\n"
" pe-x86-64\n"
" pei-x86-64\n"
" pe-i386\n"
" pei-i386\n"
);
exit(1);
}
Expand Down Expand Up @@ -251,8 +251,8 @@ int _tmain(int argc, TCHAR* argv[]) {
!_tcscmp(bfd_target, _T("pei-x86-64")))
target = _T("x86_64-w64-mingw32");
else if (!_tcscmp(bfd_target, _T("pe-i386")) ||
!_tcscmp(bfd_target, _T("pei-x86-64")))
target = _T("x86_64-w64-mingw32");
!_tcscmp(bfd_target, _T("pei-i386")))
target = _T("i686-w64-mingw32");
else
error(basename, _T("unsupported target: `"TS"'"), bfd_target);
}
Expand Down

0 comments on commit 130bbed

Please sign in to comment.