- Timestamp:
- Aug 23, 2018, 6:28:45 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 2a9d12d, bcb14b5
- Parents:
- 9833cae0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
driver/cfa.cc
r9833cae0 rdfb7c96 10 10 // Created On : Tue Aug 20 13:44:49 2002 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Aug 23 09:42:47201813 // Update Count : 2 6712 // Last Modified On : Thu Aug 23 15:41:55 2018 13 // Update Count : 270 14 14 // 15 15 … … 343 343 args[nargs] = "-I" CFA_INCDIR; 344 344 nargs += 1; 345 if ( ! noincstd_flag ) { 345 if ( ! noincstd_flag ) { // do not use during build 346 346 args[nargs] = "-I" CFA_INCDIR "stdhdr"; 347 347 nargs += 1; … … 354 354 args[nargs] = "-I" TOP_SRCDIR "libcfa/src"; 355 355 nargs += 1; 356 if ( ! noincstd_flag ) { 356 if ( ! noincstd_flag ) { // do not use during build 357 357 args[nargs] = "-I" TOP_SRCDIR "libcfa/src" "/stdhdr"; 358 358 nargs += 1; … … 379 379 } 380 380 381 const char * const arch = m32 ? CFA_32_CPU : (m64 ? CFA_64_CPU : CFA_DEFAULT_CPU); 381 string arch = m32 ? CFA_32_CPU : (m64 ? CFA_64_CPU : CFA_DEFAULT_CPU); 382 if ( ! m32 && ! m64 && arch == "x86" ) { // no override and 32-bit architecture 383 args[nargs] = "-m32"; 384 nargs += 1; 385 } // if 382 386 const char * config = debug ? "debug": "nodebug"; 383 387 string libdir = libbase + arch + "-" + config; 384 if( !dirExists(libdir) ) { 388 389 if ( ! dirExists( libdir ) ) { 385 390 cerr << argv[0] << " internal error, configuration " << config << " not installed." << endl; 386 391 cerr << "Was looking for " << libdir << endl; 387 392 libdir = libbase + arch + "-" + "nolib"; 388 } 389 390 if ( !dirExists(libdir) ) {393 } // if 394 395 if ( ! dirExists( libdir ) ) { 391 396 cerr << argv[0] << " internal error, cannot find prelude directory." << endl; 392 397 cerr << "Was looking for " << libdir << endl; 393 398 exit( EXIT_FAILURE ); 394 } 399 } // if 395 400 396 401 args[nargs] = ( *new string( string("-D__CFA_FLAG__=--prelude-dir=" ) + libdir + (intree ? "/prelude" : "")) ).c_str();
Note: See TracChangeset
for help on using the changeset viewer.