[PATCH 2/2] winegcc: pass through -march to winebuild

Stephen Kitt steve at sk2.org
Sun Dec 13 14:01:20 CST 2015


Now that winebuild supports -march, make winegcc pass it through.
(Since this is a standard -march option I haven't added it to
winegcc.man.in.)

Signed-off-by: Stephen Kitt <steve at sk2.org>
---
 tools/winegcc/winegcc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index c07243b..1326afe 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -1525,7 +1525,7 @@ int main(int argc, char **argv)
                         strarray_add(opts.winebuild_args, argv[i]);
 			raw_linker_arg = 1;
                     }
-                    else if (strncmp("-mcpu=", argv[i], 6) == 0)
+                    else if (strncmp("-mcpu=", argv[i], 6) == 0 || strncmp("-march=", argv[i], 7) == 0)
                         strarray_add(opts.winebuild_args, argv[i]);
 		    break;
                 case 'n':
-- 
2.6.2




More information about the wine-patches mailing list