Adding CompilationDatabase generation (#4091)
This commit is contained in:
committed by
GitHub
parent
627904d469
commit
ffe2fcf7c2
@@ -3,6 +3,7 @@
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
import org.jetbrains.kotlin.CompileToBitcode
|
||||
import org.jetbrains.kotlin.CompilationDatabaseKt
|
||||
|
||||
// TODO: consider using some Gradle plugins to build and test
|
||||
|
||||
@@ -14,6 +15,8 @@ targetList.each { targetName ->
|
||||
tasks.create("${targetName}Files", CompileToBitcode, file("src/files"), 'files', targetName)
|
||||
}
|
||||
|
||||
CompilationDatabaseKt.createCompilationDatabaseFromCompileToBitcodeTasks(project, "compdb")
|
||||
|
||||
task build {
|
||||
dependsOn "${hostName}Hash"
|
||||
dependsOn "${hostName}Files"
|
||||
|
||||
Reference in New Issue
Block a user