Skip to content

Commit

Permalink
Despite the docs, you can only enable ccache if it exist
Browse files Browse the repository at this point in the history
  • Loading branch information
puremourning authored and bstaletic committed Apr 13, 2024
1 parent f8e77bb commit 6355059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package_llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ def GetGeneratorArgs():


def GetCacheArgs( build_dir ):
return [
return shutil.which( 'ccache' ) and [
'-DLLVM_CCACHE_BUILD=ON',
'-DLLVM_CCACHE_MAXSIZE=5G',
'-DLLVM_CCACHE_DIR={}'.format(
os.path.abspath( os.path.join( build_dir, '..', 'ccache' ) ) ),
]
] or []


def BuildLlvm( build_dir,
Expand Down

0 comments on commit 6355059

Please sign in to comment.