Add ccache support
This commit is contained in:
parent
b0447677f1
commit
4ed751ad5a
1 changed files with 4 additions and 2 deletions
|
|
@ -571,9 +571,11 @@ proc buildLibrary(lname, outdir, conFlags, cmakeFlags, makeFlags: string): strin
|
||||||
gen = "MinGW Makefiles".quoteShell
|
gen = "MinGW Makefiles".quoteShell
|
||||||
else:
|
else:
|
||||||
gen = "Unix Makefiles".quoteShell
|
gen = "Unix Makefiles".quoteShell
|
||||||
cmake(outdir / "build", "Makefile", &".. -G {gen} {cmakeFlags}")
|
if findExe("ccache").len != 0:
|
||||||
|
gen &= " -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
|
||||||
|
makePath = outdir / "buildcache"
|
||||||
|
cmake(makePath, "Makefile", &".. -G {gen} {cmakeFlags}")
|
||||||
cmakeDeps = true
|
cmakeDeps = true
|
||||||
makePath = outdir / "build"
|
|
||||||
else:
|
else:
|
||||||
cmakeDepStr &= "cmake executable missing"
|
cmakeDepStr &= "cmake executable missing"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue