Skip to content

Commit d810be3

Browse files
committed
build: update README with config.mk
1 parent 6ba9ba6 commit d810be3

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,22 @@ the C stack usage is bounded. There is no abstract syntax tree. The
346346
bytecode is generated in one pass with several tricks to optimize it
347347
(QuickJS has several optimization passes).
348348

349+
#### Configuration
350+
351+
The build configuration can be customized by creating a `config.mk` file.
352+
You can copy the example configuration:
353+
354+
```bash
355+
cp config.mk.example config.mk
356+
```
357+
358+
Then edit `config.mk` to enable or disable specific options (e.g. `CONFIG_ASAN=y` for debugging).
359+
Alternatively, you can override options directly on the command line:
360+
361+
```bash
362+
make CONFIG_SMALL=n
363+
```
364+
349365
## Tests and benchmarks
350366

351367
Running the basic tests:

0 commit comments

Comments
 (0)