mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-30 14:50:33 +00:00
Increase the CCache size by default and make it user customizeable.
svn path=/trunk/tools/RosBE/; revision=1227
This commit is contained in:
parent
0773afc3d6
commit
1713c7fd7f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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=
|
||||
|
@ -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=
|
||||
|
Loading…
Reference in New Issue
Block a user