Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Commit

Permalink
build: configure 'c' plugin to use clang toolchain from dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
SvyatoslavScherbina committed Oct 24, 2016
1 parent a938fcc commit a158d52
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,20 @@ allprojects {
if (path != ":dependencies") {
evaluationDependsOn(":dependencies")
}

afterEvaluate {
if (plugins.hasPlugin('c')) {
model {
toolChains {
clang(Clang) {
path "$llvmDir/bin"

// The system PATH should be appended automatically according to Gradle docs,
// but this doesn't seem to happen
path System.env.PATH.split(File.pathSeparator)
}
}
}
}
}
}

0 comments on commit a158d52

Please sign in to comment.