Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ab871dc4
Commit
ab871dc4
authored
Sep 10, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Support the --target option like winebuild does.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0c2cc9bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
winegcc.c
tools/winegcc/winegcc.c
+7
-0
winegcc.man.in
tools/winegcc/winegcc.man.in
+3
-0
No files found.
tools/winegcc/winegcc.c
View file @
ab871dc4
...
...
@@ -1429,6 +1429,7 @@ int main(int argc, char **argv)
case
'-'
:
next_is_arg
=
(
strcmp
(
"--param"
,
argv
[
i
])
==
0
||
strcmp
(
"--sysroot"
,
argv
[
i
])
==
0
||
strcmp
(
"--target"
,
argv
[
i
])
==
0
||
strcmp
(
"--lib-suffix"
,
argv
[
i
])
==
0
);
break
;
}
...
...
@@ -1656,6 +1657,12 @@ int main(int argc, char **argv)
else
opts
.
sysroot
=
argv
[
i
+
1
];
if
(
opts
.
wine_objdir
)
raw_compiler_arg
=
raw_linker_arg
=
0
;
}
else
if
(
!
strncmp
(
"--target"
,
argv
[
i
],
8
))
{
if
(
argv
[
i
][
8
]
==
'='
)
parse_target_option
(
&
opts
,
argv
[
i
]
+
9
);
else
parse_target_option
(
&
opts
,
argv
[
i
+
1
]
);
raw_compiler_arg
=
raw_linker_arg
=
0
;
}
else
if
(
!
strncmp
(
"--lib-suffix"
,
argv
[
i
],
12
)
&&
opts
.
wine_objdir
)
{
if
(
argv
[
i
][
12
]
==
'='
)
opts
.
lib_suffix
=
argv
[
i
]
+
13
;
...
...
tools/winegcc/winegcc.man.in
View file @
ab871dc4
...
...
@@ -35,6 +35,9 @@ enters a special mode for building Wine itself. Developers should
avoid prefixes ending with the magic suffix, or if that is not
possible, simply express it differently, such as '/tools/winebuild/',
to avoid the special behaviour.
.IP "\fB-b,--target \fItarget\fR"
Specify the target architecture triplet for cross-compiling. winegcc
will then invoke \fItarget\fR-gcc instead of gcc.
.IP \fB-fno-short-wchar\fR
Override the underlying type for wchar_t to be the default for the
target, instead of using short unsigned int, which is the default
...
...
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