mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-21 11:09:10 +08:00
Disable parallel compilation
This commit is contained in:
parent
00c74ec13f
commit
3ccc07d5f4
@ -48,7 +48,7 @@ fun Project.preConfigureJvmTarget() {
|
||||
// Using /2 processors: jvm and android targets are compiled at the same time, sharing the processors.
|
||||
// Also reserved 2 processors for Gradle multi-tasking
|
||||
// On Apple M1 Max parallelism reduces compilation time by 1/3.
|
||||
kotlinOptions.freeCompilerArgs += "-Xbackend-threads=" + (Runtime.getRuntime().availableProcessors() / 2 - 1).coerceAtLeast(1)
|
||||
// kotlinOptions.freeCompilerArgs += "-Xbackend-threads=" + (Runtime.getRuntime().availableProcessors() / 2 - 1).coerceAtLeast(1)
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile::class.java) {
|
||||
|
Loading…
Reference in New Issue
Block a user