diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2023-02-17 08:26:08 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2023-02-20 08:02:33 +0100 |
commit | e1a53fd0e67fb2d4ad7619e22550545fab27c620 (patch) | |
tree | a6faefad3976abd79fe939d80fd94423748ee362 /src/core | |
parent | 86bfec0d10ac8967fd8a2703837f9f6e25d51bc3 (diff) | |
download | ccache-e1a53fd0e67fb2d4ad7619e22550545fab27c620.tar.gz |
feat: Add support for setting per-compilation config on command line
Closes #1035.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/mainoptions.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/core/mainoptions.cpp b/src/core/mainoptions.cpp index 32a89b4e..e8b46437 100644 --- a/src/core/mainoptions.cpp +++ b/src/core/mainoptions.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2021-2022 Joel Rosdahl and other contributors +// Copyright (C) 2021-2023 Joel Rosdahl and other contributors // // See doc/AUTHORS.adoc for a complete list of contributors. // @@ -88,9 +88,13 @@ version. constexpr const char USAGE_TEXT[] = R"(Usage: - {0} [options] - {0} compiler [compiler options] - compiler [compiler options] (ccache masquerading as the compiler) + {0} [ccache options] + {0} [KEY=VALUE ...] compiler [compiler options] + compiler [compiler options] + + The first form takes options described below. The second form invokes the + compiler, optionally using configuration options from KEY=VALUE arguments. + In the third form, ccache is masquerading as the compiler. Common options: -c, --cleanup delete old files and recalculate size counters @@ -115,7 +119,7 @@ Common options: --recompress-threads THREADS use up to THREADS threads when recompressing the cache; default: number of CPUs - -o, --set-config KEY=VAL set configuration option KEY to value VAL + -o, --set-config KEY=VALUE set configuration option KEY to value VALUE -x, --show-compression show compression statistics -p, --show-config show current configuration options in human-readable format |