Changeset 0ea0b8f
- Timestamp:
- Aug 12, 2020, 12:18:47 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 7f66cec
- Parents:
- a77257be
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
ra77257be r0ea0b8f 24 24 #Trasforming cc1 will break compilation 25 25 M4CFA_PROGRAM_NAME 26 27 #============================================================================== 28 # New AST toggling support 29 AH_TEMPLATE([CFA_USE_NEW_AST],[Sets whether or not to use the new-ast, this is adefault value and can be overrided by --old-ast and --new-ast]) 30 AC_ARG_ENABLE(new-ast, 31 [ --enable-new-ast whether or not to use new ast as the default AST algorithm], 32 [case "${enableval}" in 33 yes) newast=true ;; 34 no) newast=false ;; 35 *) AC_MSG_ERROR([bad value ${enableval} for --enable-new-ast]) ;; 36 esac],[newast=false]) 37 AC_DEFINE_UNQUOTED([CFA_USE_NEW_AST], $newast) 26 38 27 39 #============================================================================== -
src/CompilationState.cc
ra77257be r0ea0b8f 14 14 // 15 15 16 #include "config.h" 17 16 18 int 17 19 astp = false, … … 28 30 genproto = false, 29 31 deterministic_output = false, 30 useNewAST = true,32 useNewAST = CFA_USE_NEW_AST, 31 33 nomainp = false, 32 34 parsep = false, -
src/config.h.in
ra77257be r0ea0b8f 27 27 /* Location of cfa install. */ 28 28 #undef CFA_PREFIX 29 30 /* Sets whether or not to use the new-ast, this is adefault value and can be 31 overrided by --old-ast and --new-ast */ 32 #undef CFA_USE_NEW_AST 29 33 30 34 /* Major.Minor */
Note: See TracChangeset
for help on using the changeset viewer.