Skip to content

Commit

Permalink
Add a ALSO_LOOM build option
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Nov 20, 2023
1 parent 79f504b commit be9a827
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,13 @@ Fetch the tags from the upstream:
```
git fetch --tags upstream
```

## Scoping which projects are included by `sbt`

* when `STTP_NATIVE` is set, Scala native projects are included in the build (when running `sbt`)
* when `ALSO_LOOM` is set, projects using virtual threads and requiring Java 21 are included in the build
* when `ONLY_LOOM` is set, only projects using virtual threads are included in the build

### Testing locally

The JS tests use [Gecko instead of Chrome](https://github.com/scala-js/scala-js-env-selenium/issues/119), although this
Expand Down
3 changes: 3 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ lazy val allAggregates: Seq[ProjectReference] = {
if (sys.env.isDefinedAt("ONLY_LOOM")) {
println("[info] ONLY_LOOM defined, including only loom-based projects")
filteredByNative.filter(p => (p.toString.contains("Loom") || p.toString.contains("nima")))
} else if (sys.env.isDefinedAt("ALSO_LOOM")) {
println("[info] ALSO_LOOM defined, including also loom-based projects")
filteredByNative
} else {
println("[info] ONLY_LOOM *not* defined, *not* including loom-based-projects")
filteredByNative.filterNot(p => (p.toString.contains("Loom") || p.toString.contains("nima")))
Expand Down

0 comments on commit be9a827

Please sign in to comment.