class CmakeUtils {

    public static int getToolchainHash(@NonNull NativeToolchainValue toolchainValue) {
        StringBuilder toolchainString = new StringBuilder();
        if (toolchainValue.cppCompilerExecutable != null) {
            toolchainString =
                    toolchainString
                            .append(toolchainValue.cppCompilerExecutable.getAbsolutePath())
                            .append(" ");
        }
        if (toolchainValue.cCompilerExecutable != null) {
            toolchainString =
                    toolchainString.append(toolchainValue.cCompilerExecutable.getAbsolutePath());
        }

        return toolchainString.toString().hashCode();
    }

}