mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-03 20:24:14 +02:00
BuildMacOSUniversalBinary: Add flag to enable CCache
This commit is contained in:
@@ -69,6 +69,9 @@ DEFAULT_CONFIG = {
|
|||||||
# Whether our autoupdate functionality is enabled or not.
|
# Whether our autoupdate functionality is enabled or not.
|
||||||
"autoupdate": True,
|
"autoupdate": True,
|
||||||
|
|
||||||
|
# Whether CCache is used for the build or not.
|
||||||
|
"ccache": False,
|
||||||
|
|
||||||
# The distributor for this build.
|
# The distributor for this build.
|
||||||
"distributor": "None"
|
"distributor": "None"
|
||||||
}
|
}
|
||||||
@@ -119,6 +122,12 @@ def parse_args(conf=DEFAULT_CONFIG):
|
|||||||
action=argparse.BooleanOptionalAction,
|
action=argparse.BooleanOptionalAction,
|
||||||
default=conf["autoupdate"])
|
default=conf["autoupdate"])
|
||||||
|
|
||||||
|
parser.add_argument(
|
||||||
|
"--ccache",
|
||||||
|
help="Enables CCache",
|
||||||
|
action=argparse.BooleanOptionalAction,
|
||||||
|
default=conf["ccache"])
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--distributor",
|
"--distributor",
|
||||||
help="Sets the distributor for this build",
|
help="Sets the distributor for this build",
|
||||||
@@ -304,7 +313,9 @@ def build(config):
|
|||||||
# iconv, bzip2, and curl
|
# iconv, bzip2, and curl
|
||||||
"-DUSE_SYSTEM_ICONV=ON",
|
"-DUSE_SYSTEM_ICONV=ON",
|
||||||
"-DUSE_SYSTEM_BZIP2=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)
|
env=env, cwd=arch)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user