diff --git a/rehlds/dedicated/build.gradle b/rehlds/dedicated/build.gradle index 5f9cf42..8af0268 100644 --- a/rehlds/dedicated/build.gradle +++ b/rehlds/dedicated/build.gradle @@ -10,6 +10,7 @@ import org.gradle.nativeplatform.NativeExecutableBinarySpec apply plugin: 'cpp' apply plugin: 'windows-resources' apply plugin: IccCompilerPlugin +apply plugin: GccCompilerPlugin List getRcCompileTasks(NativeBinarySpec binary) { @@ -70,9 +71,11 @@ model { } toolChains { - visualCpp(VisualCpp) { - } - icc(Icc) { + visualCpp(VisualCpp) + if (project.hasProperty("useGcc")) { + gcc(Gcc) + } else { + icc(Icc) } }