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
87e1e435
Commit
87e1e435
authored
May 14, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
May 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Use msvcrt by default for PE targets.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
baf0254b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
winegcc.c
tools/winegcc/winegcc.c
+16
-1
No files found.
tools/winegcc/winegcc.c
View file @
87e1e435
...
...
@@ -324,6 +324,19 @@ static char* get_temp_file(const char* prefix, const char* suffix)
return
tmp
;
}
static
int
is_pe_target
(
const
struct
options
*
opts
)
{
switch
(
opts
->
target_platform
)
{
case
PLATFORM_MINGW
:
case
PLATFORM_CYGWIN
:
case
PLATFORM_WINDOWS
:
return
1
;
default:
return
0
;
}
}
enum
tool
{
TOOL_CC
,
...
...
@@ -1103,7 +1116,7 @@ static void build(struct options* opts)
int
generate_app_loader
=
1
;
const
char
*
crt_lib
=
NULL
,
*
entry_point
=
NULL
;
int
fake_module
=
0
;
int
is_pe
=
(
opts
->
target_platform
==
PLATFORM_WINDOWS
||
opts
->
target_platform
==
PLATFORM_CYGWIN
||
opts
->
target_platform
==
PLATFORM_MINGW
);
int
is_pe
=
is_pe_target
(
opts
);
unsigned
int
j
;
/* NOTE: for the files array we'll use the following convention:
...
...
@@ -2090,6 +2103,8 @@ int main(int argc, char **argv)
if
(
opts
.
processor
==
proc_cpp
)
linking
=
0
;
if
(
linking
==
-
1
)
error
(
"Static linking is not supported
\n
"
);
if
(
!
opts
.
wine_objdir
&&
is_pe_target
(
&
opts
))
opts
.
use_msvcrt
=
1
;
if
(
opts
.
files
->
size
==
0
)
forward
(
&
opts
);
else
if
(
linking
)
build
(
&
opts
);
else
compile
(
&
opts
,
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