summaryrefslogtreecommitdiff
path: root/conf.c
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2014-11-02 17:26:58 +0100
committerJoel Rosdahl <joel@rosdahl.net>2014-11-02 17:26:58 +0100
commitc6bd92b56f792f4bd7e2df839f75d1f1fc4e4e94 (patch)
tree1986ccbb8acdf380ef4b63e0cf79a7e5a094a2fd /conf.c
parent0c5724af62f6f0edece88d4c83bb02b54149e26a (diff)
downloadccache-c6bd92b56f792f4bd7e2df839f75d1f1fc4e4e94.tar.gz
Add "read-only direct" setting
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/conf.c b/conf.c
index ece1f504..56adb484 100644
--- a/conf.c
+++ b/conf.c
@@ -319,6 +319,7 @@ conf_create(void)
conf->path = x_strdup("");
conf->prefix_command = x_strdup("");
conf->read_only = false;
+ conf->read_only_direct = false;
conf->recache = false;
conf->run_second_cpp = false;
conf->sloppiness = 0;
@@ -583,6 +584,10 @@ conf_print_items(struct conf *conf,
reformat(&s, "read_only = %s", bool_to_string(conf->read_only));
printer(s, conf->item_origins[find_conf("read_only")->number], context);
+ reformat(&s, "read_only_direct = %s", bool_to_string(conf->read_only_direct));
+ printer(s, conf->item_origins[find_conf("read_only_direct")->number],
+ context);
+
reformat(&s, "recache = %s", bool_to_string(conf->recache));
printer(s, conf->item_origins[find_conf("recache")->number], context);