llvm.org GIT mirror llvm / 49feabc
Track clang r213171 The clang rewriter is now a core facility. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213173 91177308-0d34-0410-b5e6-96231b3b80d8 Alp Toker 5 years ago
2 changed file(s) with 0 addition(s) and 23 deletion(s). Raw diff Collapse all Expand all
258258 # When ENABLE_CLANG_ARCMT is enabled, clang will have ARCMigrationTool.
259259 ENABLE_CLANG_ARCMT = @ENABLE_CLANG_ARCMT@
260260
261 # When ENABLE_CLANG_REWRITER is enabled, clang will have Rewriter.
262 ENABLE_CLANG_REWRITER = @ENABLE_CLANG_REWRITER@
263
264261 # When ENABLE_CLANG_STATIC_ANALYZER is enabled, clang will have StaticAnalyzer.
265262 ENABLE_CLANG_STATIC_ANALYZER = @ENABLE_CLANG_STATIC_ANALYZER@
266263
674674 *) AC_MSG_ERROR([Invalid setting for --enable-clang-static-analyzer. Use "yes" or "no"]) ;;
675675 esac
676676
677 dnl --enable-clang-rewriter: check whether to enable clang rewriter
678 AC_ARG_ENABLE(clang-rewriter,
679 AS_HELP_STRING([--enable-clang-rewriter],
680 [Enable building of clang rewriter (default is YES)]),,
681 enableval="yes")
682 case "$enableval" in
683 yes) AC_SUBST(ENABLE_CLANG_REWRITER,[1]) ;;
684 no)
685 if test ${clang_arcmt} != "no" ; then
686 AC_MSG_ERROR([Cannot enable clang ARC Migration Tool while disabling rewriter.])
687 fi
688 if test ${clang_static_analyzer} != "no" ; then
689 AC_MSG_ERROR([Cannot enable clang static analyzer while disabling rewriter.])
690 fi
691 AC_SUBST(ENABLE_CLANG_REWRITER,[0])
692 ;;
693 default) AC_SUBST(ENABLE_CLANG_REWRITER,[1]);;
694 *) AC_MSG_ERROR([Invalid setting for --enable-clang-rewriter. Use "yes" or "no"]) ;;
695 esac
696
697677 dnl --enable-optimized : check whether they want to do an optimized build:
698678 AC_ARG_ENABLE(optimized, AS_HELP_STRING(
699679 --enable-optimized,[Compile with optimizations enabled (default is NO)]),,enableval=$optimize)