Changes in src/main.cc [d9fa60a:375a068]
- File:
-
- 1 edited
-
src/main.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
rd9fa60a r375a068 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Oct 30 10:11:38201613 // Update Count : 43 512 // Last Modified On : Wed Dec 14 14:35:54 2016 13 // Update Count : 436 14 14 // 15 15 … … 178 178 if ( ! nopreludep ) { // include gcc builtins 179 179 // -l is for initial build ONLY and builtins.cf is not in the lib directory so access it here. 180 FILE * builtins = fopen( libcfap | treep ? " builtins.cf" : CFA_LIBDIR "/builtins.cf", "r" );180 FILE * builtins = fopen( libcfap | treep ? "../prelude/builtins.cf" : CFA_LIBDIR "/builtins.cf", "r" ); 181 181 assertf( builtins, "cannot open builtins.cf\n" ); 182 182 parse( builtins, LinkageSpec::Compiler ); 183 183 184 184 // read the extra prelude in, if not generating the cfa library 185 FILE * extras = fopen( libcfap | treep ? " extras.cf" : CFA_LIBDIR "/extras.cf", "r" );185 FILE * extras = fopen( libcfap | treep ? "../prelude/extras.cf" : CFA_LIBDIR "/extras.cf", "r" ); 186 186 assertf( extras, "cannot open extras.cf\n" ); 187 187 parse( extras, LinkageSpec::C ); … … 189 189 if ( ! libcfap ) { 190 190 // read the prelude in, if not generating the cfa library 191 FILE * prelude = fopen( treep ? " prelude.cf" : CFA_LIBDIR "/prelude.cf", "r" );191 FILE * prelude = fopen( treep ? "../prelude/prelude.cf" : CFA_LIBDIR "/prelude.cf", "r" ); 192 192 assertf( prelude, "cannot open prelude.cf\n" ); 193 193 parse( prelude, LinkageSpec::Intrinsic ); … … 266 266 OPTPRINT( "expandUniqueExpr" ); // xxx - is this the right place for this? want to expand ASAP so that subsequent passes don't need to worry about double-visiting a unique expr - needs to go after InitTweak::fix so that copy constructed return declarations are reused 267 267 Tuples::expandUniqueExpr( translationUnit ); 268 OPTPRINT( "expandTuples" ); // xxx - is this the right place for this?269 Tuples::expandTuples( translationUnit );270 268 271 269 OPTPRINT("instantiateGenerics") … … 284 282 OPTPRINT( "box" ) 285 283 GenPoly::box( translationUnit ); 284 OPTPRINT( "expandTuples" ); // xxx - is this the right place for this? 285 Tuples::expandTuples( translationUnit ); 286 286 287 287 // print tree right before code generation
Note:
See TracChangeset
for help on using the changeset viewer.