Changeset 417a630 for driver/cc1.cc


Ignore:
Timestamp:
Aug 26, 2019, 4:15:08 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
b544afa
Parents:
5a43ab8
Message:

second attempt at moving cfa-cpp to cc1 stage 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • driver/cc1.cc

    r5a43ab8 r417a630  
    1010// Created On       : Fri Aug 26 14:23:51 2005
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Aug 26 07:52:19 2019
    13 // Update Count     : 374
     12// Last Modified On : Mon Aug 26 14:21:22 2019
     13// Update Count     : 375
    1414//
    1515
     
    3333
    3434
    35 static string installlibdir( CFA_LIBDIR );                              // fixed location of cc1 and cfa-cpp commands when installed
    3635static string compiler_path( CFA_BACKEND_CC );                  // path/name of C compiler
    3736static bool CFA_flag = false;                                                   // -CFA flag
    3837static bool save_temps = false;                                                 // -save-temps flag
    3938static string o_file;
     39static string bprefix;
    4040
    4141
     
    9898                        } else if ( prefix( val, "-o=" ) ) {            // output file for -CFA
    9999                                o_file = val.substr( 3 );
     100                        } else if ( prefix( val, "-B=" ) ) {            // location of cfa-cpp
     101                                bprefix = val.substr( 3 );
    100102                        } else {
    101103                                args[nargs++] = ( *new string( arg.substr( __CFA_FLAGPREFIX__.size() + 4 ) ) ).c_str();
     
    428430
    429431        if ( fork() == 0 ) {                                                            // child runs CFA
    430                 cargs[0] = ( *new string( installlibdir + "cfa-cpp" ) ).c_str();
     432                cargs[0] = ( *new string( bprefix + "cfa-cpp" ) ).c_str();
    431433                cargs[ncargs++] = cpp_in;
    432434
Note: See TracChangeset for help on using the changeset viewer.