From 8f03d679326fd86897a14ba3bae030e8765a1ea7 Mon Sep 17 00:00:00 2001 From: Jules Villard Date: Mon, 3 Aug 2015 09:54:21 -0100 Subject: [PATCH] [clang] uglify json when not in frontend debug mode --- infer/lib/clang/clang_general_wrapper | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/infer/lib/clang/clang_general_wrapper b/infer/lib/clang/clang_general_wrapper index 338406965..70eb93e83 100755 --- a/infer/lib/clang/clang_general_wrapper +++ b/infer/lib/clang/clang_general_wrapper @@ -129,6 +129,12 @@ then if [ -n "$SYNTAX_ONLY" ]; then EXTRA_ARGS+=("-fsyntax-only") fi + if [ -z "$DEBUG_MODE" ]; then + # uglify json + EXTRA_ARGS+=( + "-Xclang" "-plugin-arg-${PLUGIN_NAME}" + "-Xclang" "PRETTIFY_JSON=0") + fi unset IFS # using always the original clang command for several reasons: