Skip to content
Snippets Groups Projects
Commit 4d7bc60c authored by David Bühler's avatar David Bühler
Browse files

Merge branch 'fix/andre/make-template' into 'stable/calcium'

[analysis-scripts] fix template when stub for 'main' is generated

See merge request frama-c/frama-c!2445
parents 84387eb7 41a59204
No related branches found
No related tags found
No related merge requests found
...@@ -178,6 +178,7 @@ with open(sharedir / "analysis-scripts" / "template.mk") as f: ...@@ -178,6 +178,7 @@ with open(sharedir / "analysis-scripts" / "template.mk") as f:
check_path_exists("fc_stubs.c") check_path_exists("fc_stubs.c")
from shutil import copyfile from shutil import copyfile
copyfile(sharedir / "analysis-scripts" / "fc_stubs.c", "fc_stubs.c") copyfile(sharedir / "analysis-scripts" / "fc_stubs.c", "fc_stubs.c")
lines = insert_line_after(lines, "^FCFLAGS", " -main eva_main \\\n")
print("Created stub for main function: fc_stubs.c") print("Created stub for main function: fc_stubs.c")
gnumakefile.write_text("".join(lines)) gnumakefile.write_text("".join(lines))
......
...@@ -29,6 +29,7 @@ CPPFLAGS += ...@@ -29,6 +29,7 @@ CPPFLAGS +=
# (Optional) Frama-C general flags (parsing and kernel) # (Optional) Frama-C general flags (parsing and kernel)
FCFLAGS += \ FCFLAGS += \
-main eva_main \
-machdep x86_64 \ -machdep x86_64 \
-json-compilation-database . \ -json-compilation-database . \
-kernel-warn-key annot:missing-spec=abort \ -kernel-warn-key annot:missing-spec=abort \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment