Skip to content

Commit 88c0b4c

Browse files
Merge pull request #1 from davidrupp/patch-1
Add Git submodule information to README build instructions
2 parents 20e0018 + b8dd889 commit 88c0b4c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ jlox adds the following:
1111

1212
# build and run
1313

14+
Before the initial build, you will need to run a couple of commands to install the `craftinginterpreters` submodule.
15+
16+
```shell
17+
git submodule init
18+
git submodule update
19+
```
20+
21+
If you do not do this first, you will get a bunch of compile errors about missing classes, like `Stmt`, `Expr`, and `Function`.
22+
1423
The Gradle `build` task will run the Lox tests and build a jar in the lib folder.
1524
The jar can be compiled without running the tests with the `copyJar` task.
1625

0 commit comments

Comments
 (0)