From: Joel Rosdahl Date: Wed, 1 Jan 2020 20:49:11 +0000 (+0100) Subject: Add “--nocpp2” option to misc/performance X-Git-Tag: v3.7.7~6 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=dbf7e85f67cf785636341ce07380e7151b582ee6;p=thirdparty%2Fccache.git Add “--nocpp2” option to misc/performance --- diff --git a/misc/performance b/misc/performance index 0886b7ccb..d2671ba1c 100755 --- a/misc/performance +++ b/misc/performance @@ -98,6 +98,8 @@ def test(tmp_dir, options, compiler_args, source_file): environment["CCACHE_COMPILERCHECK"] = options.compilercheck if options.compression: environment["CCACHE_COMPRESS"] = "1" + if options.nocpp2: + environment["CCACHE_NOCPP2"] = "1" if options.hardlink: environment["CCACHE_HARDLINK"] = "1" if options.nostats: @@ -278,6 +280,9 @@ def main(argv): ), type="int", ) + op.add_option( + "--nocpp2", help="compile preprocessed output", action="store_true" + ) op.add_option( "--nostats", help="don't write statistics", action="store_true" ) @@ -326,6 +331,7 @@ def main(argv): print("Compilercheck:", options.compilercheck) print("Compression:", on_off(options.compression)) print("Hardlink:", on_off(options.hardlink)) + print("Nocpp2:", on_off(options.nocpp2)) print("Nostats:", on_off(options.nostats)) tmp_dir = "%s/perfdir.%d" % (abspath(options.directory), getpid())