Skip to content

Commit

Permalink
Add tracing and timing flags to readme.md (#585)
Browse files Browse the repository at this point in the history
* adding tracing and timings flags to readme

* Add tracing and timing flags to readme.md

Added some markdown to include the flags --define=kt_trace=1 and --define=kt_timings=1 in the readme file.
These reference issues #277 and #311. These two flags would help with any confusion and provide some documentation for them.
@ulfjack @Yannic

Signed-off-by: Bradley Burns <bradley.burns@codethink.co.uk>
  • Loading branch information
bradb423 authored Sep 21, 2021
1 parent 3e28470 commit 1d80564
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,11 @@ kt_jvm_library(
)
```

Additionally, you can add options for both tracing and timing of the bazel build using the `kt_trace` and `kt_timings` flags, for example:
* `bazel build --define=kt_trace=1`
* `bazel build --define=kt_timings=1`

`kt_trace=1` will allow you to inspect the full kotlinc commandline invocation, while `kt_timings=1` will report the high level time taken for each step.
# Kotlin compiler plugins

The `kt_compiler_plugin` rule allows running Kotlin compiler plugins, such as no-arg, sam-with-receiver and allopen.
Expand Down

0 comments on commit 1d80564

Please sign in to comment.