Trying out Gradle for a C/C++ project. It works without any problems with Gradle 2.1, but not with Gradle 2.2.1
Trying to build with Gradle 2.2.1 :compileCpptestSharedLibraryCpptestC FAILED
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ‘:compileCpptestSharedLibraryCpptestC’. > Could not find C compiler ‘gcc’ in system path.
This is my build.gradle script:
apply plugin: 'c'
apply plugin: 'cpp'
model {
platforms {
x86 {
architecture "x86"
}
x64 {
architecture "x86_64"
}
}
toolChains {
gcc(Gcc) {}
clang(Clang) {}
}
}
libraries {
myLibC {}
myLibCpp {}
plugins {}
}