forked from snabbco/snabb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile: New 'reusevm' target & bootstrap-skipping method
This is a "less magic" and "more helpful" way to handle bootstrapping vs not bootstrapping the VM. The default behavior of "make" is reverted to its original behavior. i.e. it generates code for the VM using DynASM (requiring LuaJIT.) If LuaJIT is not available then this error message is printed: Error: Missing dependency (luajit) for bootstrapping the VM. Here are your options to build RaptorJIT: make reusevm # copy reference VM from reusevm/ (install luajit) # satisfy the dependency nix-build # use nix to satisfy the dependencies Warning: Only reusevm when running a pristine copy of RaptorJIT from a repository that keeps the reference VM up-to-date. (Otherwise you might mix some stale code into your build.) So then the user can choose between installing LuaJIT or running 'make reusevm' to use the in-tree generated code at their own risk. In practice it should be safe to 'reusevm' when building a pristine master branch because CI is ensuring that the code is always up-to-date. However, other branches or working copies may have stale code in reusevm/ that is not safe to use.
- Loading branch information
Showing
10 changed files
with
36 additions
and
29 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.