ΒΆextern void
thinlto_codegen_set_final_cache_size_relative_to_available_space(
    thinlto_code_gen_t cg,
    unsigned int percentage)

Description

Sets the maximum cache size that can be persistent across build, in terms of percentage of the available space on the disk. Set to 100 to indicate no limit, 50 to indicate that the cache size will not be left over half the available space. A value over 100 will be reduced to 100, a value of 0 will be ignored. An unspecified default value will be applied. The formula looks like: AvailableSpace = FreeSpace + ExistingCacheSize NewCacheSize = AvailableSpace * P/100

Declared at: llvm/include/llvm-c/lto.h:911

Parameters

thinlto_code_gen_t cg
unsigned int percentage