Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
33c729bb
Commit
33c729bb
authored
Dec 13, 2015
by
Stephen Kitt
Committed by
Alexandre Julliard
Dec 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Add support for -march.
Signed-off-by:
Stephen Kitt
<
steve@sk2.org
>
Signed-off-by:
André Hentschel
<
nerv@dawncrow.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ca9001d6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
1 deletion
+5
-1
build.h
tools/winebuild/build.h
+1
-0
main.c
tools/winebuild/main.c
+2
-0
utils.c
tools/winebuild/utils.c
+1
-0
winebuild.man.in
tools/winebuild/winebuild.man.in
+1
-1
No files found.
tools/winebuild/build.h
View file @
33c729bb
...
...
@@ -362,6 +362,7 @@ extern struct strarray *cc_command;
extern
struct
strarray
*
ld_command
;
extern
struct
strarray
*
nm_command
;
extern
char
*
cpu_option
;
extern
char
*
arch_option
;
extern
int
thumb_mode
;
#endif
/* __WINE_BUILD_H */
tools/winebuild/main.c
View file @
33c729bb
...
...
@@ -89,6 +89,7 @@ struct strarray *cc_command = NULL;
struct
strarray
*
ld_command
=
NULL
;
struct
strarray
*
nm_command
=
NULL
;
char
*
cpu_option
=
NULL
;
char
*
arch_option
=
NULL
;
#ifdef __thumb__
int
thumb_mode
=
1
;
...
...
@@ -408,6 +409,7 @@ static char **parse_options( int argc, char **argv, DLLSPEC *spec )
else
if
(
!
strcmp
(
optarg
,
"arm"
))
thumb_mode
=
0
;
else
if
(
!
strcmp
(
optarg
,
"thumb"
))
thumb_mode
=
1
;
else
if
(
!
strncmp
(
optarg
,
"cpu="
,
4
))
cpu_option
=
xstrdup
(
optarg
+
4
);
else
if
(
!
strncmp
(
optarg
,
"arch="
,
5
))
arch_option
=
xstrdup
(
optarg
+
5
);
else
fatal_error
(
"Unknown -m option '%s'
\n
"
,
optarg
);
break
;
case
'M'
:
...
...
tools/winebuild/utils.c
View file @
33c729bb
...
...
@@ -388,6 +388,7 @@ struct strarray *get_as_command(void)
if
(
force_pointer_size
)
strarray_add_one
(
args
,
(
force_pointer_size
==
8
)
?
"-m64"
:
"-m32"
);
if
(
cpu_option
)
strarray_add_one
(
args
,
strmake
(
"-mcpu=%s"
,
cpu_option
)
);
if
(
arch_option
)
strarray_add_one
(
args
,
strmake
(
"-march=%s"
,
arch_option
)
);
return
args
;
}
...
...
tools/winebuild/winebuild.man.in
View file @
33c729bb
...
...
@@ -156,7 +156,7 @@ option.
.B \-m16, -m32, -m64
Generate respectively 16-bit, 32-bit or 64-bit code.
.TP
.BI \-marm,\ \-mthumb,\ \-mcpu= option
.BI \-marm,\ \-mthumb,\ \-m
arch= option ,\ \-m
cpu= option
Set code generation options for the assembler.
.TP
.BI \-M,\ --main-module= module
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment