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
102617f1
Commit
102617f1
authored
Sep 21, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let winebuild take care of calling the assembler.
Pass -v and -save-temps options through to winebuild too.
parent
3cd7379d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
49 deletions
+6
-49
winegcc.c
tools/winegcc/winegcc.c
+6
-49
No files found.
tools/winegcc/winegcc.c
View file @
102617f1
...
@@ -373,48 +373,6 @@ static const char* compile_to_object(struct options* opts, const char* file, con
...
@@ -373,48 +373,6 @@ static const char* compile_to_object(struct options* opts, const char* file, con
return
copts
.
output_name
;
return
copts
.
output_name
;
}
}
static
void
assemble
(
struct
options
*
opts
)
{
int
i
;
for
(
i
=
0
;
i
<
opts
->
files
->
size
;
i
++
)
{
if
(
opts
->
files
->
base
[
i
][
0
]
!=
'-'
)
{
strarray
*
as_args
=
strarray_alloc
();
strarray_addall
(
as_args
,
get_translator
(
proc_as
));
if
(
opts
->
output_name
)
{
strarray_add
(
as_args
,
"-o"
);
strarray_add
(
as_args
,
opts
->
output_name
);
}
strarray_add
(
as_args
,
opts
->
files
->
base
[
i
]);
spawn
(
opts
->
prefix
,
as_args
,
0
);
strarray_free
(
as_args
);
}
}
}
static
const
char
*
assemble_to_object
(
struct
options
*
opts
,
const
char
*
file
)
{
struct
options
copts
;
char
*
base_name
;
/* make a copy so we don't change any of the initial stuff */
/* a shallow copy is exactly what we want in this case */
base_name
=
get_basename
(
file
);
copts
=
*
opts
;
copts
.
output_name
=
get_temp_file
(
base_name
,
".o"
);
copts
.
files
=
strarray_alloc
();
strarray_add
(
copts
.
files
,
file
);
assemble
(
&
copts
);
strarray_free
(
copts
.
files
);
free
(
base_name
);
return
copts
.
output_name
;
}
/* check if there is a static lib associated to a given dll */
/* check if there is a static lib associated to a given dll */
static
char
*
find_static_lib
(
const
char
*
dll
)
static
char
*
find_static_lib
(
const
char
*
dll
)
{
{
...
@@ -430,7 +388,7 @@ static void build(struct options* opts)
...
@@ -430,7 +388,7 @@ static void build(struct options* opts)
strarray
*
lib_dirs
,
*
files
;
strarray
*
lib_dirs
,
*
files
;
strarray
*
spec_args
,
*
link_args
;
strarray
*
spec_args
,
*
link_args
;
char
*
output_file
;
char
*
output_file
;
const
char
*
spec_
s_name
,
*
spec_
o_name
;
const
char
*
spec_o_name
;
const
char
*
output_name
,
*
spec_file
,
*
lang
;
const
char
*
output_name
,
*
spec_file
,
*
lang
;
const
char
*
winebuild
=
getenv
(
"WINEBUILD"
);
const
char
*
winebuild
=
getenv
(
"WINEBUILD"
);
int
generate_app_loader
=
1
;
int
generate_app_loader
=
1
;
...
@@ -586,10 +544,12 @@ static void build(struct options* opts)
...
@@ -586,10 +544,12 @@ static void build(struct options* opts)
free
(
fullname
);
free
(
fullname
);
}
}
/* run winebuild to generate the .spec.
c
file */
/* run winebuild to generate the .spec.
o
file */
spec_args
=
strarray_alloc
();
spec_args
=
strarray_alloc
();
spec_
s_name
=
get_temp_file
(
output_name
,
".spec.s
"
);
spec_
o_name
=
get_temp_file
(
output_name
,
".spec.o
"
);
strarray_add
(
spec_args
,
winebuild
);
strarray_add
(
spec_args
,
winebuild
);
if
(
verbose
)
strarray_add
(
spec_args
,
"-v"
);
if
(
keep_generated
)
strarray_add
(
spec_args
,
"--save-temps"
);
strarray_add
(
spec_args
,
"--as-cmd"
);
strarray_add
(
spec_args
,
"--as-cmd"
);
strarray_add
(
spec_args
,
AS
);
strarray_add
(
spec_args
,
AS
);
strarray_add
(
spec_args
,
"--ld-cmd"
);
strarray_add
(
spec_args
,
"--ld-cmd"
);
...
@@ -597,7 +557,7 @@ static void build(struct options* opts)
...
@@ -597,7 +557,7 @@ static void build(struct options* opts)
strarray_addall
(
spec_args
,
strarray_fromstring
(
DLLFLAGS
,
" "
));
strarray_addall
(
spec_args
,
strarray_fromstring
(
DLLFLAGS
,
" "
));
strarray_add
(
spec_args
,
opts
->
shared
?
"--dll"
:
"--exe"
);
strarray_add
(
spec_args
,
opts
->
shared
?
"--dll"
:
"--exe"
);
strarray_add
(
spec_args
,
"-o"
);
strarray_add
(
spec_args
,
"-o"
);
strarray_add
(
spec_args
,
spec_
s
_name
);
strarray_add
(
spec_args
,
spec_
o
_name
);
if
(
spec_file
)
if
(
spec_file
)
{
{
strarray_add
(
spec_args
,
"-E"
);
strarray_add
(
spec_args
,
"-E"
);
...
@@ -643,9 +603,6 @@ static void build(struct options* opts)
...
@@ -643,9 +603,6 @@ static void build(struct options* opts)
spawn
(
opts
->
prefix
,
spec_args
,
0
);
spawn
(
opts
->
prefix
,
spec_args
,
0
);
/* assemble the .spec.s file into a .spec.o file */
spec_o_name
=
assemble_to_object
(
opts
,
spec_s_name
);
/* link everything together now */
/* link everything together now */
link_args
=
strarray_alloc
();
link_args
=
strarray_alloc
();
strarray_addall
(
link_args
,
get_translator
(
opts
->
processor
));
strarray_addall
(
link_args
,
get_translator
(
opts
->
processor
));
...
...
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