summaryrefslogtreecommitdiffstats
path: root/cli/src/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/cli.c')
-rw-r--r--cli/src/cli.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c
index b58f211d3dd..7903b57edb6 100644
--- a/cli/src/cli.c
+++ b/cli/src/cli.c
@@ -338,6 +338,12 @@ cli_opt_parse (char *opt, struct cli_state *state)
exit (0);
}
+ /* XLATORDIR passed through a -D flag to GCC */
+ if (strcmp (opt, "print-xlatordir") == 0) {
+ cli_out ("%s", XLATORDIR);
+ exit (0);
+ }
+
if (strcmp (opt, "xml") == 0) {
#if (HAVE_LIB_XML)
state->mode |= GLUSTER_MODE_XML;