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
d31f6141
Commit
d31f6141
authored
Jun 14, 2012
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Jun 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Support the mingw32 target without an i[3456]86- prefix.
parent
4768b11c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
winegcc.c
tools/winegcc/winegcc.c
+19
-10
No files found.
tools/winegcc/winegcc.c
View file @
d31f6141
...
@@ -1184,20 +1184,29 @@ static void parse_target_option( struct options *opts, const char *target )
...
@@ -1184,20 +1184,29 @@ static void parse_target_option( struct options *opts, const char *target )
/* get the CPU part */
/* get the CPU part */
if
(
!
(
p
=
strchr
(
spec
,
'-'
)))
error
(
"Invalid target specification '%s'
\n
"
,
target
);
if
((
p
=
strchr
(
spec
,
'-'
)))
*
p
++
=
0
;
for
(
i
=
0
;
i
<
sizeof
(
cpu_names
)
/
sizeof
(
cpu_names
[
0
]);
i
++
)
{
{
if
(
!
strcmp
(
cpu_names
[
i
].
name
,
spec
))
*
p
++
=
0
;
for
(
i
=
0
;
i
<
sizeof
(
cpu_names
)
/
sizeof
(
cpu_names
[
0
]);
i
++
)
{
{
opts
->
target_cpu
=
cpu_names
[
i
].
cpu
;
if
(
!
strcmp
(
cpu_names
[
i
].
name
,
spec
))
break
;
{
opts
->
target_cpu
=
cpu_names
[
i
].
cpu
;
break
;
}
}
}
if
(
i
==
sizeof
(
cpu_names
)
/
sizeof
(
cpu_names
[
0
]))
error
(
"Unrecognized CPU '%s'
\n
"
,
spec
);
platform
=
p
;
if
((
p
=
strrchr
(
p
,
'-'
)))
platform
=
p
+
1
;
}
}
if
(
i
==
sizeof
(
cpu_names
)
/
sizeof
(
cpu_names
[
0
]))
else
if
(
!
strcmp
(
spec
,
"mingw32"
))
error
(
"Unrecognized CPU '%s'
\n
"
,
spec
);
{
platform
=
p
;
opts
->
target_cpu
=
CPU_x86
;
if
((
p
=
strrchr
(
p
,
'-'
)))
platform
=
p
+
1
;
platform
=
spec
;
}
else
error
(
"Invalid target specification '%s'
\n
"
,
target
);
/* get the OS part */
/* get the OS part */
...
...
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