Increase the CCache size by default and make it user customizeable.

svn path=/trunk/tools/RosBE/; revision=1227
This commit is contained in:
Daniel Reimer 2010-08-23 15:57:46 +00:00
parent 0773afc3d6
commit 1713c7fd7f
4 changed files with 15 additions and 0 deletions

View File

@ -20,6 +20,12 @@ if (Test-Path ".\config.rbuild") {
}
if ($_ROSBE_USECCACHE -eq 1) {
if ("$_ROSBE_CACHESIZE" -ne "") {
$_ROSBE_CACHESIZEG = "$_ROSBE_CACHESIZE" + "G"
&{IEX "&'ccache.exe' -M $_ROSBE_CACHESIZEG"}
} else {
&{IEX "&'ccache.exe' -M 8G"}
}
$_ROSBE_CCACHE = "ccache "
} else {
$_ROSBE_CCACHE = $null

View File

@ -83,6 +83,8 @@ if ("$ENV:_ROSBE_CCACHE_DIR" -eq "") {
$ENV:CCACHE_DIR = "$_ROSBE_CCACHE_DIR"
}
$global:_ROSBE_CACHESIZE = "4"
$ENV:C_INCLUDE_PATH = $null
$ENV:CPLUS_INCLUDE_PATH = $null
$ENV:LIBRARY_PATH = $null

View File

@ -29,6 +29,11 @@ if exist .\config.rbuild (
)
if "%_ROSBE_USECCACHE%" == "1" (
if not "%_ROSBE_CACHESIZE%" == "" (
ccache -M %_ROSBE_CACHESIZE%G
) else (
ccache -M 8G
)
set _ROSBE_CCACHE=ccache
) else (
set _ROSBE_CCACHE=

View File

@ -61,6 +61,8 @@ if "%_ROSBE_CCACHE_DIR%" == "" (
set CCACHE_DIR=%_ROSBE_CCACHE_DIR%
)
set _ROSBE_CACHESIZE=4
set C_INCLUDE_PATH=
set CPLUS_INCLUDE_PATH=
set LIBRARY_PATH=