# Force specific compiler (gradle native)

**URL:** <https://discuss.gradle.org/t/force-specific-compiler-gradle-native/28010>\
**Category:** Help/Discuss\
**Created:** [August 4, 2018, 11:53pm UTC](https://discuss.gradle.org/t/force-specific-compiler-gradle-native/28010 "2018-08-04T23:53:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrainStone](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/brainstone/32/6245_2.png) [@BrainStone](https://discuss.gradle.org/u/BrainStone)\
**Post date:** [August 4, 2018, 11:53pm UTC](https://discuss.gradle.org/t/force-specific-compiler-gradle-native/28010/1 "2018-08-04T23:53:15Z")

</div>

Is there a way to force gradle to use a specific compiler?

For example I exported the environment variable `CXX=gcc-7`, but it still uses the default `gcc` compiler.

Googling and similar yielded nothing
