]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Enable the unifier option, also in direct mode
authorAnders F Björklund <anders.f.bjorklund@gmail.com>
Tue, 28 Mar 2017 05:29:47 +0000 (07:29 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 19 Jul 2017 19:58:32 +0000 (21:58 +0200)
MANUAL.txt
ccache.c

index a72922a7faf29339541ab8b27bc76db562e61398..c45d7083e0919516b2217740a8d7f3e493261ab5 100644 (file)
@@ -543,8 +543,7 @@ NOTE: In previous versions of ccache, *CCACHE_TEMPDIR* had to be on the same
     unifier changes the hash, so cached compilations produced when the unifier
     is enabled cannot be reused when the unifier is disabled, and vice versa.
     Enabling the unifier may result in incorrect line number information in
-    compiler warning messages and expansions of the *\_\_LINE__* macro. Also
-    note that enabling the unifier implies turning off the direct mode.
+    compiler warning messages and expansions of the *\_\_LINE__* macro.
 
 
 Cache size management
@@ -753,7 +752,6 @@ The direct mode will be disabled if any of the following holds:
 * the configuration setting *direct_mode* is false
 * a modification time of one of the include files is too new (needed to avoid a
   race condition)
-* the unifier is enabled (the configuration setting *unify* is true)
 * a compiler option not supported by the direct mode is used:
 ** a *-Wp,_X_* compiler option other than *-Wp,-MD,_path_*,
    *-Wp,-MMD,_path_* and *-Wp,-D_define_*
index 631eba6f7f170711180ac98b8a62874fc735120d..462884471b00014aa2f3d72d29906e47f93727a6 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -3306,11 +3306,6 @@ ccache(int argc, char *argv[])
        cc_log("Hostname: %s", get_hostname());
        cc_log("Working directory: %s", get_current_working_dir());
 
-       if (conf->unify) {
-               cc_log("Direct mode disabled because unify mode is enabled");
-               conf->direct_mode = false;
-       }
-
        conf->limit_multiple = MIN(MAX(conf->limit_multiple, 0.0), 1.0);
 
        // Arguments (except -E) to send to the preprocessor.