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
6c807b74
Commit
6c807b74
authored
Feb 12, 2014
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Add support for -marm and -mthumb target flags.
parent
da066aea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
build.h
tools/winebuild/build.h
+1
-0
main.c
tools/winebuild/main.c
+9
-1
winebuild.man.in
tools/winebuild/winebuild.man.in
+3
-0
No files found.
tools/winebuild/build.h
View file @
6c807b74
...
...
@@ -362,5 +362,6 @@ extern struct strarray *cc_command;
extern
struct
strarray
*
ld_command
;
extern
struct
strarray
*
nm_command
;
extern
char
*
cpu_option
;
extern
int
thumb_mode
;
#endif
/* __WINE_BUILD_H */
tools/winebuild/main.c
View file @
6c807b74
...
...
@@ -90,6 +90,12 @@ struct strarray *ld_command = NULL;
struct
strarray
*
nm_command
=
NULL
;
char
*
cpu_option
=
NULL
;
#ifdef __thumb__
int
thumb_mode
=
1
;
#else
int
thumb_mode
=
0
;
#endif
static
int
nb_res_files
;
static
char
**
res_files
;
...
...
@@ -396,8 +402,10 @@ static char **parse_options( int argc, char **argv, DLLSPEC *spec )
if
(
!
strcmp
(
optarg
,
"16"
))
spec
->
type
=
SPEC_WIN16
;
else
if
(
!
strcmp
(
optarg
,
"32"
))
force_pointer_size
=
4
;
else
if
(
!
strcmp
(
optarg
,
"64"
))
force_pointer_size
=
8
;
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
fatal_error
(
"
Invalid -m option '%s', expected -m16, -m32, -m64 or -mcpu
\n
"
,
optarg
);
else
fatal_error
(
"
Unknown -m option '%s'
\n
"
,
optarg
);
break
;
case
'M'
:
spec
->
main_module
=
xstrdup
(
optarg
);
...
...
tools/winebuild/winebuild.man.in
View file @
6c807b74
...
...
@@ -156,6 +156,9 @@ option.
.B \-m16, -m32, -m64
Generate respectively 16-bit, 32-bit or 64-bit code.
.TP
.BI \-marm,\ \-mthumb,\ \-mcpu= option
Set code generation options for the assembler.
.TP
.BI \-M,\ --main-module= module
When building a 16-bit dll, set the name of its 32-bit counterpart to
\fImodule\fR. This is used to enforce that the load order for the
...
...
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