mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 02:45:25 +03:00
23 lines
735 B
C++
23 lines
735 B
C++
//===-- driver/cache_pruning.h ----------------------------------*- C++ -*-===//
|
||
//
|
||
// LDC – the LLVM D compiler
|
||
//
|
||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||
// file for details.
|
||
//
|
||
//===----------------------------------------------------------------------===//
|
||
|
||
#ifndef LDC_DRIVER_IR2OBJ_CACHE_PRUNING_H
|
||
#define LDC_DRIVER_IR2OBJ_CACHE_PRUNING_H
|
||
|
||
#if __LP64__
|
||
using d_ulong = unsigned long;
|
||
#else
|
||
using d_ulong = unsigned long long;
|
||
#endif
|
||
|
||
void pruneCache(const char *cacheDirectoryPtr, size_t cacheDirectoryLen,
|
||
uint32_t pruneIntervalSeconds, uint32_t expireIntervalSeconds,
|
||
d_ulong sizeLimitBytes, uint32_t sizeLimitPercentage);
|
||
|
||
#endif
|