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
b58ef6bf
Commit
b58ef6bf
authored
Feb 12, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Hardcode the various gcc tool names when cross-compiling.
parent
0fea4a50
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
7 deletions
+28
-7
winegcc.c
tools/winegcc/winegcc.c
+28
-7
No files found.
tools/winegcc/winegcc.c
View file @
b58ef6bf
...
...
@@ -285,17 +285,38 @@ static char* get_temp_file(const char* prefix, const char* suffix)
static
const
strarray
*
get_translator
(
struct
options
*
opts
)
{
const
char
*
str
;
strarray
*
ret
;
switch
(
opts
->
processor
)
{
case
proc_cpp
:
str
=
CPP
;
break
;
case
proc_cc
:
str
=
CC
;
break
;
case
proc_cxx
:
str
=
CXX
;
break
;
case
proc_as
:
str
=
AS
;
break
;
default:
assert
(
0
);
case
proc_cpp
:
if
(
opts
->
target
)
str
=
strmake
(
"%s-cpp"
,
opts
->
target
);
else
str
=
CPP
;
break
;
case
proc_cc
:
if
(
opts
->
target
)
str
=
strmake
(
"%s-gcc"
,
opts
->
target
);
else
str
=
CC
;
break
;
case
proc_cxx
:
if
(
opts
->
target
)
str
=
strmake
(
"%s-g++"
,
opts
->
target
);
else
str
=
CXX
;
break
;
case
proc_as
:
if
(
opts
->
target
)
str
=
strmake
(
"%s-as"
,
opts
->
target
);
else
str
=
AS
;
break
;
default:
assert
(
0
);
}
ret
=
strarray_fromstring
(
str
,
" "
);
if
(
opts
->
force_pointer_size
)
{
if
(
opts
->
processor
==
proc_as
)
strarray_add
(
ret
,
strmake
(
"--%u"
,
8
*
opts
->
force_pointer_size
));
else
strarray_add
(
ret
,
strmake
(
"-m%u"
,
8
*
opts
->
force_pointer_size
));
}
if
(
opts
->
target
)
str
=
strmake
(
"%s-%s"
,
opts
->
target
,
str
);
return
strarray_fromstring
(
str
,
" "
);
return
ret
;
}
static
void
compile
(
struct
options
*
opts
,
const
char
*
lang
)
...
...
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