Skip to content

Commit

Permalink
Update fastbuild.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tpasternak authored Oct 16, 2024
1 parent f361adb commit ebcf6c7
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions docs/fastbuild.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
## Fast Build

The IntelliJ plugin for Bazel includes the **Fast Build** feature, allowing you to run tests and executables without recompiling the entire target. This feature detects which Java files have changed and compiles only those files, significantly speeding up the development process.

## Requirements
In order to get fast build working, you have to add some VM options to the IntelliJ setup.
You can go to Help -> Edit custom VM options, and add these entries there:
```

To enable Fast Build, you must add specific VM options to your IntelliJ configuration. Follow these steps:

1. Navigate to **Help** -> **Edit Custom VM Options**.
2. Add the following entries:

```plaintext
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
```

## How to Use

To use Fast Build, locate your test or executable in the editor. Click the gutter icon and select either **Fast Run** or **Fast Test**.

0 comments on commit ebcf6c7

Please sign in to comment.