Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
66cad154
Commit
66cad154
authored
3 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[analysis-scripts] build: fix addition of eva_main and machdep argument
parent
72934bd4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
share/analysis-scripts/build.py
+5
-2
5 additions, 2 deletions
share/analysis-scripts/build.py
with
5 additions
and
2 deletions
share/analysis-scripts/build.py
+
5
−
2
View file @
66cad154
...
@@ -67,7 +67,7 @@ parser.add_argument('--targets', metavar='FILE', nargs='+',
...
@@ -67,7 +67,7 @@ parser.add_argument('--targets', metavar='FILE', nargs='+',
(
wrapper_args
,
args
)
=
parser
.
parse_known_args
()
(
wrapper_args
,
args
)
=
parser
.
parse_known_args
()
force
=
wrapper_args
.
force
force
=
wrapper_args
.
force
jbdb_path
=
wrapper_args
.
jbdb
[
0
]
jbdb_path
=
wrapper_args
.
jbdb
[
0
]
machdep
=
wrapper_args
.
machdep
[
0
]
if
wrapper_args
.
machdep
else
None
machdep
=
wrapper_args
.
machdep
main
=
wrapper_args
.
main
main
=
wrapper_args
.
main
sources
=
wrapper_args
.
sources
sources
=
wrapper_args
.
sources
targets
=
wrapper_args
.
targets
targets
=
wrapper_args
.
targets
...
@@ -326,7 +326,10 @@ delete_line(template, r"^main.parse: \\")
...
@@ -326,7 +326,10 @@ delete_line(template, r"^main.parse: \\")
delete_line
(
template
,
r
"
^ main.c \\
"
)
delete_line
(
template
,
r
"
^ main.c \\
"
)
for
target
,
sources
in
reversed
(
sources_map
.
items
()):
for
target
,
sources
in
reversed
(
sources_map
.
items
()):
pp_target
=
make_target_name
(
target
)
pp_target
=
make_target_name
(
target
)
new_lines
=
[
f
"
{
pp_target
}
.parse:
\\
"
]
+
pretty_sources
(
sources
)
+
[
""
,
f
"
{
pp_target
}
.parse: FCFLAGS += -main eva_main
"
,
""
]
new_lines
=
[
f
"
{
pp_target
}
.parse:
\\
"
]
+
pretty_sources
(
sources
)
+
[
""
]
if
any
(
d
[
2
]
for
d
in
main_definitions
[
target
]):
logging
.
debug
(
f
"
target
{
blug_jbdb
.
prettify
(
target
)
}
has main with args, adding -main eva_main to its FCFLAGS
"
)
new_lines
+=
[
f
"
{
pp_target
}
.parse: FCFLAGS += -main eva_main
"
,
""
]
insert_lines_after
(
template
,
"
^### Each target <t>.eva
"
,
new_lines
)
insert_lines_after
(
template
,
"
^### Each target <t>.eva
"
,
new_lines
)
gnumakefile
.
write_text
(
"
\n
"
.
join
(
template
))
gnumakefile
.
write_text
(
"
\n
"
.
join
(
template
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment