Changeset 0163d3e for driver/cfa.cc


Ignore:
Timestamp:
May 30, 2020, 6:30:39 PM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
cb95634
Parents:
a491a3c
Message:

make -x flag work for one input file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • driver/cfa.cc

    ra491a3c r0163d3e  
    1010// Created On       : Tue Aug 20 13:44:49 2002
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon May 18 21:50:54 2020
    13 // Update Count     : 425
     12// Last Modified On : Sat May 30 18:28:23 2020
     13// Update Count     : 433
    1414//
    1515
     
    243243                                        lang = arg.substr( 2 );
    244244                                } // if
    245                                 x_flag = lang != "none";
     245                                if ( x_flag ) {
     246                                        cerr << argv[0] << " warning, only one -x flag per compile, ignoring subsequent flag." << endl;
     247                                } else {
     248                                        x_flag = true;
     249                                        Putenv( argv, string( "-x=" ) + lang );
     250                                } // if
    246251                        } else if ( prefix( arg, "-std=" ) || prefix( arg, "--std=" ) ) {
    247252                                std_flag = true;                                                // -std=XX provided
Note: See TracChangeset for help on using the changeset viewer.