Report error on optimized build using caches

This commit is contained in:
Igor Chevdar
2019-12-26 19:07:16 +05:00
parent 721ee18a64
commit fafe554a4e
@@ -114,5 +114,10 @@ class CacheSupport(
"that is already cached in '${cache.path}'")
}
}
if ((librariesToCache.isNotEmpty() || cachedLibraries.hasDynamicCaches || cachedLibraries.hasStaticCaches)
&& configuration.getBoolean(KonanConfigKeys.OPTIMIZATION)) {
configuration.reportCompilationError("Cache cannot be used in optimized compilation")
}
}
}