]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Add “--nocpp2” option to misc/performance
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 1 Jan 2020 20:49:11 +0000 (21:49 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 2 Jan 2020 20:06:13 +0000 (21:06 +0100)
misc/performance

index 0886b7ccb78e1f4c9867bd77f2a84a774e173bd5..d2671ba1cd788819761013a98d41dfd6634b1487 100755 (executable)
@@ -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())