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
b21da1d7
Commit
b21da1d7
authored
May 10, 2012
by
Eric Pouech
Committed by
Alexandre Julliard
May 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Try harder to find out whether the compiler is from gcc family.
parent
47332210
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
winegcc.c
tools/winegcc/winegcc.c
+11
-8
No files found.
tools/winegcc/winegcc.c
View file @
b21da1d7
...
@@ -395,10 +395,10 @@ static char *get_lib_dir( struct options *opts )
...
@@ -395,10 +395,10 @@ static char *get_lib_dir( struct options *opts )
static
void
compile
(
struct
options
*
opts
,
const
char
*
lang
)
static
void
compile
(
struct
options
*
opts
,
const
char
*
lang
)
{
{
strarray
*
comp_args
=
strarray_alloc
();
strarray
*
comp_args
=
strarray_alloc
();
unsigned
int
j
;
unsigned
int
i
,
j
;
int
gcc_defs
=
0
;
int
gcc_defs
=
0
;
char
*
gcc
;
strarray
*
gcc
;
char
*
gpp
;
strarray
*
gpp
;
strarray_addall
(
comp_args
,
get_translator
(
opts
));
strarray_addall
(
comp_args
,
get_translator
(
opts
));
switch
(
opts
->
processor
)
switch
(
opts
->
processor
)
...
@@ -409,16 +409,19 @@ static void compile(struct options* opts, const char* lang)
...
@@ -409,16 +409,19 @@ static void compile(struct options* opts, const char* lang)
/* mixing different C and C++ compilers isn't supported in configure anyway */
/* mixing different C and C++ compilers isn't supported in configure anyway */
case
proc_cc
:
case
proc_cc
:
case
proc_cxx
:
case
proc_cxx
:
gcc
=
build_tool_name
(
opts
,
"gcc"
,
CC
);
gcc
=
strarray_fromstring
(
build_tool_name
(
opts
,
"gcc"
,
CC
),
" "
);
gpp
=
build_tool_name
(
opts
,
"g++"
,
CXX
);
gpp
=
strarray_fromstring
(
build_tool_name
(
opts
,
"g++"
,
CXX
),
" "
);
for
(
j
=
0
;
!
gcc_defs
&&
j
<
comp_args
->
size
;
j
++
)
for
(
j
=
0
;
!
gcc_defs
&&
j
<
comp_args
->
size
;
j
++
)
{
{
const
char
*
cc
=
comp_args
->
base
[
j
];
const
char
*
cc
=
comp_args
->
base
[
j
];
gcc_defs
=
strendswith
(
cc
,
gcc
)
||
strendswith
(
cc
,
gpp
);
for
(
i
=
0
;
!
gcc_defs
&&
i
<
gcc
->
size
;
i
++
)
gcc_defs
=
gcc
->
base
[
i
][
0
]
!=
'-'
&&
strendswith
(
cc
,
gcc
->
base
[
i
]);
for
(
i
=
0
;
!
gcc_defs
&&
i
<
gpp
->
size
;
i
++
)
gcc_defs
=
gpp
->
base
[
i
][
0
]
!=
'-'
&&
strendswith
(
cc
,
gpp
->
base
[
i
]);
}
}
free
(
gcc
);
strarray_
free
(
gcc
);
free
(
gpp
);
strarray_
free
(
gpp
);
break
;
break
;
}
}
...
...
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