Changeset 37fe352 for src


Ignore:
Timestamp:
Aug 5, 2018, 4:11:41 PM (6 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, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
28582b2
Parents:
4dcaed2
Message:

Added proper multi-lib handling, tests still do not work and arm support is broken

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/config.h.in

    r4dcaed2 r37fe352  
    11/* src/config.h.in.  Generated from configure.ac by autoheader.  */
     2
     3/* CPU to use if the -m32 flags is given. */
     4#undef CFA_32_CPU
     5
     6/* CPU to use if the -m64 flags is given. */
     7#undef CFA_64_CPU
    28
    39/* Location of include files. */
     
    612/* Location of cfa command. */
    713#undef CFA_BINDIR
     14
     15/* Default cpu to use if neither -m32 or -m64 are defined. */
     16#undef CFA_DEFAULT_CPU
    817
    918/* compilation flags for cfa libraries and test programs. */
  • src/main.cc

    r4dcaed2 r37fe352  
    209209                        // -l is for initial build ONLY and builtins.cf is not in the lib directory so access it here.
    210210
    211                         assertf( (libcfap | treep) != PreludeDirector.empty(), "When building in tree option --prelude-dir must be used." );
     211                        assertf( !PreludeDirector.empty(), "Can't find prelude without option --prelude-dir must be used." );
    212212
    213213                        // Read to gcc builtins, if not generating the cfa library
    214                         FILE * gcc_builtins = fopen( libcfap | treep ? (PreludeDirector + "/gcc-builtins.cf").c_str() : CFA_LIBDIR "/gcc-builtins.cf", "r" );
     214                        FILE * gcc_builtins = fopen( (PreludeDirector + "/gcc-builtins.cf").c_str(), "r" );
    215215                        assertf( gcc_builtins, "cannot open gcc-builtins.cf\n" );
    216216                        parse( gcc_builtins, LinkageSpec::Compiler );
    217217
    218218                        // read the extra prelude in, if not generating the cfa library
    219                         FILE * extras = fopen( libcfap | treep ? (PreludeDirector + "/extras.cf").c_str() : CFA_LIBDIR "/extras.cf", "r" );
     219                        FILE * extras = fopen( (PreludeDirector + "/extras.cf").c_str(), "r" );
    220220                        assertf( extras, "cannot open extras.cf\n" );
    221221                        parse( extras, LinkageSpec::BuiltinC );
     
    223223                        if ( ! libcfap ) {
    224224                                // read the prelude in, if not generating the cfa library
    225                                 FILE * prelude = fopen( treep ? (PreludeDirector + "/prelude.cf").c_str() : CFA_LIBDIR "/prelude.cf", "r" );
     225                                FILE * prelude = fopen( (PreludeDirector + "/prelude.cf").c_str(), "r" );
    226226                                assertf( prelude, "cannot open prelude.cf\n" );
    227227                                parse( prelude, LinkageSpec::Intrinsic );
    228228
    229229                                // Read to cfa builtins, if not generating the cfa library
    230                                 FILE * builtins = fopen( libcfap | treep ? (PreludeDirector + "/builtins.cf").c_str() : CFA_LIBDIR "/builtins.cf", "r" );
     230                                FILE * builtins = fopen( (PreludeDirector + "/builtins.cf").c_str(), "r" );
    231231                                assertf( builtins, "cannot open builtins.cf\n" );
    232232                                parse( builtins, LinkageSpec::BuiltinCFA );
     
    352352                PASS( "codegen", CodeGen::generate( translationUnit, *output, ! noprotop, prettycodegenp, true, linemarks ) );
    353353
    354                 CodeGen::FixMain::fix( *output, treep ? (PreludeDirector + "/bootloader.c").c_str() : CFA_LIBDIR "/bootloader.c" );
     354                CodeGen::FixMain::fix( *output, (PreludeDirector + "/bootloader.c").c_str() );
    355355                if ( output != &cout ) {
    356356                        delete output;
Note: See TracChangeset for help on using the changeset viewer.