Skip to content

Commit acfa991

Browse files
Mention using --env in mx path commands
1 parent efb96ee commit acfa991

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

espresso/docs/hacking.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ You can find out where the espresso standalones are by running `mx path --output
4949
$ mx path --output ESPRESSO_NATIVE_STANDALONE
5050
$ mx path --output ESPRESSO_JVM_STANDALONE
5151
```
52+
> Note: If you used options like `--env ...` or `--dynamicimports ...` while building, you should also use them with `mx path`: e.g., `mx --env native-ce path ...`.
5253
5354
`mx espresso` runs Espresso from a standalone (jvm or native). It mimics the `java` command.
5455

@@ -68,7 +69,7 @@ The `mx espresso` launcher adds some overhead, to execute Espresso native image
6869

6970
```bash
7071
$ mx --env native-ce build # Always build first
71-
$ export ESPRESSO=`mx path --output ESPRESSO_NATIVE_STANDALONE`/bin/java
72+
$ export ESPRESSO=`mx --quiet --no-warning --env native-ce path --output ESPRESSO_NATIVE_STANDALONE`/bin/java
7273
$ time $ESPRESSO -cp my.jar HelloWorld
7374
```
7475

0 commit comments

Comments
 (0)