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
2dee9b98
Commit
2dee9b98
authored
May 04, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
May 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Make mingw a separated platform from msvc.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
78ce43f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
12 deletions
+15
-12
utils.c
tools/winegcc/utils.c
+1
-1
utils.h
tools/winegcc/utils.h
+1
-0
winegcc.c
tools/winegcc/winegcc.c
+13
-11
No files found.
tools/winegcc/utils.c
View file @
2dee9b98
...
...
@@ -273,7 +273,7 @@ static char* try_lib_path(const char* dir, const char* pre,
static
file_type
guess_lib_type
(
enum
target_platform
platform
,
const
char
*
dir
,
const
char
*
library
,
const
char
*
suffix
,
char
**
file
)
{
if
(
platform
!=
PLATFORM_WINDOWS
&&
platform
!=
PLATFORM_CYGWIN
)
if
(
platform
!=
PLATFORM_WINDOWS
&&
platform
!=
PLATFORM_
MINGW
&&
platform
!=
PLATFORM_
CYGWIN
)
{
/* Unix shared object */
if
((
*
file
=
try_lib_path
(
dir
,
"lib"
,
library
,
".so"
,
file_so
)))
...
...
tools/winegcc/utils.h
View file @
2dee9b98
...
...
@@ -49,6 +49,7 @@ enum target_platform
PLATFORM_ANDROID
,
PLATFORM_SOLARIS
,
PLATFORM_WINDOWS
,
PLATFORM_MINGW
,
PLATFORM_CYGWIN
};
...
...
tools/winegcc/winegcc.c
View file @
2dee9b98
...
...
@@ -181,14 +181,15 @@ static const struct
enum
target_platform
platform
;
}
platform_names
[]
=
{
{
"macos"
,
PLATFORM_APPLE
},
{
"darwin"
,
PLATFORM_APPLE
},
{
"android"
,
PLATFORM_ANDROID
},
{
"solaris"
,
PLATFORM_SOLARIS
},
{
"cygwin"
,
PLATFORM_CYGWIN
},
{
"mingw32"
,
PLATFORM_WINDOWS
},
{
"windows"
,
PLATFORM_WINDOWS
},
{
"winnt"
,
PLATFORM_WINDOWS
}
{
"macos"
,
PLATFORM_APPLE
},
{
"darwin"
,
PLATFORM_APPLE
},
{
"android"
,
PLATFORM_ANDROID
},
{
"solaris"
,
PLATFORM_SOLARIS
},
{
"cygwin"
,
PLATFORM_CYGWIN
},
{
"mingw32"
,
PLATFORM_MINGW
},
{
"windows-gnu"
,
PLATFORM_MINGW
},
{
"windows"
,
PLATFORM_WINDOWS
},
{
"winnt"
,
PLATFORM_MINGW
}
};
struct
options
...
...
@@ -258,7 +259,7 @@ static enum target_platform build_platform = PLATFORM_SOLARIS;
#elif defined(__CYGWIN__)
static
enum
target_platform
build_platform
=
PLATFORM_CYGWIN
;
#elif defined(_WIN32)
static
enum
target_platform
build_platform
=
PLATFORM_
WINDOWS
;
static
enum
target_platform
build_platform
=
PLATFORM_
MINGW
;
#else
static
enum
target_platform
build_platform
=
PLATFORM_UNSPECIFIED
;
#endif
...
...
@@ -487,6 +488,7 @@ static strarray *get_link_args( struct options *opts, const char *output_name )
break
;
case
PLATFORM_WINDOWS
:
case
PLATFORM_MINGW
:
case
PLATFORM_CYGWIN
:
if
(
opts
->
shared
||
opts
->
win16_app
)
{
...
...
@@ -729,7 +731,7 @@ static void compile(struct options* opts, const char* lang)
break
;
}
if
(
opts
->
target_platform
==
PLATFORM_WINDOWS
||
opts
->
target_platform
==
PLATFORM_CYGWIN
)
if
(
opts
->
target_platform
==
PLATFORM_WINDOWS
||
opts
->
target_platform
==
PLATFORM_CYGWIN
||
opts
->
target_platform
==
PLATFORM_MINGW
)
goto
no_compat_defines
;
if
(
opts
->
processor
!=
proc_cpp
)
...
...
@@ -1043,7 +1045,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
);
int
is_pe
=
(
opts
->
target_platform
==
PLATFORM_WINDOWS
||
opts
->
target_platform
==
PLATFORM_CYGWIN
||
opts
->
target_platform
==
PLATFORM_MINGW
);
unsigned
int
j
;
/* NOTE: for the files array we'll use the following convention:
...
...
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