Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    rdd51906 r159c62e  
    1010// Created On       : Fri May 15 23:12:02 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Jun  5 15:57:30 2016
    13 // Update Count     : 205
     12// Last Modified On : Tue Jul  5 15:23:11 2016
     13// Update Count     : 209
    1414//
    1515
     
    214214                Parser::get_parser().set_debug( grammarp );
    215215
    216                 // read in the builtins and the prelude
     216                // read in the builtins, extras, and the prelude
    217217                if ( ! nopreludep ) {                                                   // include gcc builtins
    218218                        // -l is for initial build ONLY and builtins.cf is not in the lib directory so access it here.
     
    222222                                exit( EXIT_FAILURE );
    223223                        } // if
    224 
    225224                        parse( builtins, LinkageSpec::Compiler );
     225
     226                        // read the extra prelude in, if not generating the cfa library
     227                        FILE * extras = fopen( libcfap | treep ? "extras.cf" : CFA_LIBDIR "/extras.cf", "r" );
     228                        if ( extras == NULL ) {
     229                                std::cerr << "Error: can't open extras.cf" << std::endl;
     230                                exit( EXIT_FAILURE );
     231                        } // if
     232                        parse( extras, LinkageSpec::C );
    226233
    227234                        if ( ! libcfap ) {
Note: See TracChangeset for help on using the changeset viewer.