-
Notifications
You must be signed in to change notification settings - Fork 120
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. sail can now load bytecode plugins, and will do so when the main sail program is running from bytecode 3. adds a wrapper called debug_sail which runs ocamldebug with the right environment
- Loading branch information
Showing
14 changed files
with
48 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,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
SAIL_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
SAIL_BC="$SAIL_DIR/_build/default/src/bin/sail.bc" | ||
if [ ! -f "$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_BC" $* |
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