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
c44dead5
Commit
c44dead5
authored
Apr 27, 2011
by
André Hentschel
Committed by
Alexandre Julliard
Apr 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Use -mcpu option for the assembler.
parent
7af9179e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
build.h
tools/winebuild/build.h
+1
-0
main.c
tools/winebuild/main.c
+4
-3
utils.c
tools/winebuild/utils.c
+2
-0
No files found.
tools/winebuild/build.h
View file @
c44dead5
...
...
@@ -361,5 +361,6 @@ extern char **lib_path;
extern
char
*
as_command
;
extern
char
*
ld_command
;
extern
char
*
nm_command
;
extern
char
*
cpu_option
;
#endif
/* __WINE_BUILD_H */
tools/winebuild/main.c
View file @
c44dead5
...
...
@@ -88,6 +88,7 @@ static int fake_module;
char
*
as_command
=
NULL
;
char
*
ld_command
=
NULL
;
char
*
nm_command
=
NULL
;
char
*
cpu_option
=
NULL
;
static
int
nb_res_files
;
static
char
**
res_files
;
...
...
@@ -379,11 +380,11 @@ static char **parse_options( int argc, char **argv, DLLSPEC *spec )
lib_path
[
nb_lib_paths
++
]
=
xstrdup
(
optarg
);
break
;
case
'm'
:
if
(
strcmp
(
optarg
,
"16"
)
&&
strcmp
(
optarg
,
"32"
)
&&
strcmp
(
optarg
,
"64"
))
fatal_error
(
"Invalid -m option '%s', expected -m16, -m32 or -m64
\n
"
,
optarg
);
if
(
!
strcmp
(
optarg
,
"16"
))
spec
->
type
=
SPEC_WIN16
;
else
if
(
!
strcmp
(
optarg
,
"32"
))
force_pointer_size
=
4
;
else
force_pointer_size
=
8
;
else
if
(
!
strcmp
(
optarg
,
"64"
))
force_pointer_size
=
8
;
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
);
break
;
case
'M'
:
spec
->
main_module
=
xstrdup
(
optarg
);
...
...
tools/winebuild/utils.c
View file @
c44dead5
...
...
@@ -362,6 +362,8 @@ struct strarray *get_as_command(void)
break
;
}
}
if
(
cpu_option
)
strarray_add_one
(
args
,
strmake
(
"-mcpu=%s"
,
cpu_option
)
);
return
args
;
}
...
...
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