Changeset 807ce84 for src/main.cc


Ignore:
Timestamp:
Jun 26, 2017, 12:05:01 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
6385d62
Parents:
c038214
Message:

Added builtins.c for cfa builtins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    rc038214 r807ce84  
    186186                if ( ! nopreludep ) {                                                   // include gcc builtins
    187187                        // -l is for initial build ONLY and builtins.cf is not in the lib directory so access it here.
     188                        // Read to cfa builtins, if not generating the cfa library
     189                        FILE * builtins = fopen( libcfap | treep ? "../prelude/builtins.cf" : CFA_LIBDIR "/builtins.cf", "r" );
     190                        assertf( builtins, "cannot open builtins.cf\n" );
     191                        parse( builtins, LinkageSpec::Compiler );
     192
     193                        // Read to gcc builtins, if not generating the cfa library
    188194                        FILE * gcc_builtins = fopen( libcfap | treep ? "../prelude/gcc-builtins.cf" : CFA_LIBDIR "/gcc-builtins.cf", "r" );
    189195                        assertf( gcc_builtins, "cannot open gcc-builtins.cf\n" );
Note: See TracChangeset for help on using the changeset viewer.