-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This introduces a few changes: 1. the dune config is changed to generate bytecode objects for all modules 2. an option is added that makes sail load bytecode plugins instead of native plugins (ocamldebug requires them to be bytecode) 3. adds a wrapper called debug_sail which runs ocamldebug with the right options and environment to make it work
- Loading branch information
Showing
14 changed files
with
49 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
SAIL_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
if [ ! -f "$SAIL_DIR/_build/default/src/bin/sail.bc" ]; then | ||
echo "Unable to find debug build of sail, please build it first." | ||
echo " dune build --profile debug" | ||
exit 1 | ||
fi | ||
export SAIL_DIR | ||
export DUNE_DIR_LOCATIONS="libsail:share:$SAIL_DIR/_build/install/default/share/libsail" | ||
exec rlwrap ocamldebug $(bash -c "find . -iname '*.cmo' ; find . -iname '*.cma'" | xargs dirname | sort | uniq | sed 's/^\(.*\)$/-I \1/' | tr '\n' ' ') "$SAIL_DIR/_build/default/src/bin/sail.bc" --bytecode-plugins $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
|
||
(executable | ||
(name sail) | ||
(modes native byte) | ||
(public_name sail) | ||
(package sail) | ||
(link_flags -linkall) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
(executable | ||
(name sail_plugin_c) | ||
(modes | ||
(native plugin)) | ||
(native plugin) | ||
(byte plugin)) | ||
(libraries libsail)) | ||
|
||
(install | ||
(section | ||
(site | ||
(libsail plugins))) | ||
(package sail_c_backend) | ||
(files sail_plugin_c.cmxs)) | ||
(files sail_plugin_c.cmxs sail_plugin_c.cma)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
(executable | ||
(name sail_plugin_output) | ||
(modes | ||
(native plugin)) | ||
(native plugin) | ||
(byte plugin)) | ||
(libraries libsail)) | ||
|
||
(install | ||
(section | ||
(site | ||
(libsail plugins))) | ||
(package sail_output) | ||
(files sail_plugin_output.cmxs)) | ||
(files sail_plugin_output.cmxs sail_plugin_output.cma)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters