Get the App
SLTechnology News&Howtos  ›  Development  › 

How to configure ccache in Android

Shulou Source: shulou.com Published: 2022-06-01 00:18:52 09月21日 Update

This article introduces the relevant knowledge of "how to configure ccache in Android". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

Installation:

sudo apt-get install ccache

Use:

ccache -s

Display status parameters (s is the abbreviation of English status, indicating Status)

ccache -C

Clear cache (C is capital, short for Clear, meaning Clear)

Configuration:

Edit.bashrc file

vi ~/.bashrc

Add the following three lines

export NDK_CCACHE = ccacheexport CCACHE_DIR = ~/.ccache #directory arbitrary export PATH = /usr/lib/ccache:$PATHsource ~/.bashrc

The source command causes the modification to take effect immediately

Allocate cache size:

ccache -M 5G

#(allocate 5G cache)

"How to configure ccache in Android" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

Tags: Configuration caching content more status knowledge acronym English assignment utility learning next parameters commands dilemmas uppercase size actual situation files Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Linux MySQL Shulou Tech Info MariaDB