Changeset 134b86a for driver


Ignore:
Timestamp:
Nov 3, 2014, 4:38:08 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
8c17ab0
Parents:
93885663
Message:

add compiler flag to driver, update examples, fix unnamed bit fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • driver/cfa.cc

    r93885663 r134b86a  
    88// Created On       : Tue Aug 20 13:44:49 2002
    99// Last Modified By : Peter A. Buhr
    10 // Last Modified On : Fri Oct 17 18:03:15 2014
    11 // Update Count     : 95
     10// Last Modified On : Sat Oct 18 13:52:43 2014
     11// Update Count     : 97
    1212//
    1313
     
    139139            } else if ( arg == "-nohelp" ) {
    140140                help = false;                           // strip the nohelp flag
     141            } else if ( arg == "-compiler" ) {
     142                // use the user specified compiler
     143                i += 1;
     144                if ( i == argc ) continue;              // next argument available ?
     145                compiler_path = argv[i];
     146                if ( putenv( (char *)( *new string( string( "__U_COMPILER__=" ) + argv[i]) ).c_str() ) != 0 ) {
     147                    cerr << argv[0] << " error, cannot set environment variable." << endl;
     148                    exit( EXIT_FAILURE );
     149                } // if
    141150
    142151            // C++ specific arguments
Note: See TracChangeset for help on using the changeset viewer.