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
397523ea
Commit
397523ea
authored
2 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[build] shortcut for disabling plugins before build
parent
3734dcd7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+7
-0
7 additions, 0 deletions
Makefile
dev/disable-plugins.sh
+6
-6
6 additions, 6 deletions
dev/disable-plugins.sh
with
13 additions
and
6 deletions
Makefile
+
7
−
0
View file @
397523ea
...
...
@@ -62,6 +62,11 @@ FRAMAC_HDRCK_SRC:=tools/hdrck
.PHONY
:
all
all
:
ifneq
($(DISABLED_PLUGINS),)
dune clean
rm
-rf
_build .merlin
./dev/disable-plugins.sh
${
DISABLED_PLUGINS
}
endif
dune build
$(
DUNE_BUILD_OPTS
)
@install
clean
::
purge-tests
#
to be done before a "dune" command
...
...
@@ -78,6 +83,8 @@ help::
@
echo
"Build configuration variables"
@
echo
" - RELEASE: compile in release mode if set to 'yes'"
@
echo
" - DUNE_DISPLAY: parameter transmitted to dune --display option"
@
echo
" - DISABLED_PLUGINS: disable these plugins before (re)building"
@
echo
" (none for enabling all plugins)"
##############################################################################
# INSTALL/UNINSTALL
...
...
This diff is collapsed.
Click to expand it.
dev/disable-plugins.sh
+
6
−
6
View file @
397523ea
...
...
@@ -25,7 +25,7 @@ case "$1" in
"-h"
|
"--help"
)
echo
"Usage:
$0
<plugin directories>"
echo
" - directories are given without prefix src/plugins"
echo
" - if no directory is given all plugins are enabled"
echo
" - if no directory is given all plugins are enabled
(alternative: none)
"
exit
0
esac
...
...
@@ -34,7 +34,7 @@ if [ ! -f VERSION ]; then
exit
2
fi
if
[
$#
==
"0"
]
;
then
if
[
[
"
$#
"
==
"0"
||
(
"$#"
==
"1"
&&
"
$1
"
==
"none"
)
]
]
;
then
rm
-f
src/plugins/dune
echo
"All plugin enabled"
echo
"Make sure to clean the current directory before rebuilding"
...
...
@@ -60,11 +60,11 @@ cat > src/plugins/dune <<EOL
(alias "frama-c-configure")
(deps (universe))
(action (progn
(echo "Disabled plug-in(s):")
(echo "Disabled plug-in(s):
\n
")
EOL
for
PLUGIN
in
"
$@
"
;
do
echo
" (echo
\"
- src/plugins/
$PLUGIN
\"
)"
>>
src/plugins/dune
echo
" (echo
\"
- src/plugins/
$PLUGIN
\
n\
"
)"
>>
src/plugins/dune
done
cat
>>
src/plugins/dune
<<
EOL
...
...
@@ -75,10 +75,10 @@ cat >> src/plugins/dune <<EOL
(alias "ptests_config")
(deps (universe))
(action (progn
(echo "Testing with disabled plug-in(s):")
(echo "Testing with disabled plug-in(s):
\n
")
EOL
for
PLUGIN
in
"
$@
"
;
do
echo
" (echo
\"
- src/plugins/
$PLUGIN
\"
)"
>>
src/plugins/dune
echo
" (echo
\"
- src/plugins/
$PLUGIN
\
n\
"
)"
>>
src/plugins/dune
done
echo
")))"
>>
src/plugins/dune
...
...
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