diff options
| author | OatmealDome <OatmealDome@users.noreply.github.com> | 2026-07-22 20:32:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-22 20:32:09 -0400 |
| commit | e2013caea0abc4224ccf5152a7de11c0d7bf3dbe (patch) | |
| tree | be502c08e9ed30d8ac9c3fdc1e652c97983c3ce2 | |
| parent | 03e409a3e10d67287b81c7c937657b6d2a0c39a0 (diff) | |
| parent | c490bc2c2e2377f198087756eef9c43195a698ef (diff) | |
Merge pull request #14748 from OatmealDome/mac-ccache
BuildMacOSUniversalBinary: Add flag to enable CCache
| -rwxr-xr-x | BuildMacOSUniversalBinary.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/BuildMacOSUniversalBinary.py b/BuildMacOSUniversalBinary.py index 3fc84a1c15..879b80ae09 100755 --- a/BuildMacOSUniversalBinary.py +++ b/BuildMacOSUniversalBinary.py @@ -69,6 +69,9 @@ DEFAULT_CONFIG = { # Whether our autoupdate functionality is enabled or not. "autoupdate": True, + # Whether CCache is used for the build or not. + "ccache": False, + # The distributor for this build. "distributor": "None" } @@ -120,6 +123,12 @@ def parse_args(conf=DEFAULT_CONFIG): default=conf["autoupdate"]) parser.add_argument( + "--ccache", + help="Enables CCache", + action=argparse.BooleanOptionalAction, + default=conf["ccache"]) + + parser.add_argument( "--distributor", help="Sets the distributor for this build", default=conf["distributor"]) @@ -304,7 +313,9 @@ def build(config): # iconv, bzip2, and curl "-DUSE_SYSTEM_ICONV=ON", "-DUSE_SYSTEM_BZIP2=ON", - "-DUSE_SYSTEM_CURL=ON" + "-DUSE_SYSTEM_CURL=ON", + "-DENABLE_CCACHE=" + + python_to_cmake_bool(config["ccache"]), ], env=env, cwd=arch) |
