github.com/atrn/dcc@v0.0.0-20220806184050-4470d2553272/runningmode.enum (about)

     1  // dcc - dependency-driven C/C++ compiler front end
     2  //
     3  // Copyright © A.Newman 2015.
     4  //
     5  // This source code is released under version 2 of the  GNU Public License.
     6  // See the file LICENSE for details.
     7  //
     8  
     9  package main
    10  
    11  type RunningMode enum {
    12  	// ModeNotSpecified means the user hasn't explicitly defined a
    13  	// running mode, yet.  This is the initial, default, mode.
    14  	ModeNotSpecified
    15  
    16  	// CompileAndLink means "build an exectable", the usual
    17  	// default cc(1) behaviour.
    18  	CompileAndLink
    19  
    20  	// CompileSourceFiles means the user supplied a -c switch
    21  	// and no linking is done, only compilation.
    22  	CompileSourceFiles
    23  
    24  	// CompileAndMakeLib means the user supplied the dcc --lib switch
    25  	// to create a static library.
    26  	CompileAndMakeLib
    27  
    28  	// CompileAndMakeDLL means the user supplied the dcc --dll switch.
    29  	CompileAndMakeDLL
    30  }