- Timestamp:
- Aug 5, 2018, 4:11:41 PM (6 years ago)
- 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
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/config.h.in
r4dcaed2 r37fe352 1 1 /* 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 2 8 3 9 /* Location of include files. */ … … 6 12 /* Location of cfa command. */ 7 13 #undef CFA_BINDIR 14 15 /* Default cpu to use if neither -m32 or -m64 are defined. */ 16 #undef CFA_DEFAULT_CPU 8 17 9 18 /* compilation flags for cfa libraries and test programs. */ -
src/main.cc
r4dcaed2 r37fe352 209 209 // -l is for initial build ONLY and builtins.cf is not in the lib directory so access it here. 210 210 211 assertf( (libcfap | treep) != PreludeDirector.empty(), "When building in treeoption --prelude-dir must be used." );211 assertf( !PreludeDirector.empty(), "Can't find prelude without option --prelude-dir must be used." ); 212 212 213 213 // 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" ); 215 215 assertf( gcc_builtins, "cannot open gcc-builtins.cf\n" ); 216 216 parse( gcc_builtins, LinkageSpec::Compiler ); 217 217 218 218 // 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" ); 220 220 assertf( extras, "cannot open extras.cf\n" ); 221 221 parse( extras, LinkageSpec::BuiltinC ); … … 223 223 if ( ! libcfap ) { 224 224 // 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" ); 226 226 assertf( prelude, "cannot open prelude.cf\n" ); 227 227 parse( prelude, LinkageSpec::Intrinsic ); 228 228 229 229 // 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" ); 231 231 assertf( builtins, "cannot open builtins.cf\n" ); 232 232 parse( builtins, LinkageSpec::BuiltinCFA ); … … 352 352 PASS( "codegen", CodeGen::generate( translationUnit, *output, ! noprotop, prettycodegenp, true, linemarks ) ); 353 353 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() ); 355 355 if ( output != &cout ) { 356 356 delete output;
Note: See TracChangeset
for help on using the changeset viewer.