Changeset 97144e2


Ignore:
Timestamp:
Aug 17, 2018, 2:03:31 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
5c45fec
Parents:
94c9b810
Message:

Screw functions let's just inline the code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r94c9b810 r97144e2  
    123123        public final String DescShort
    124124
    125         def compiler_from_params(cc) {
    126                 switch( cc ) {
     125        BuildSettings(java.util.Collections$UnmodifiableMap param, java.util.TreeMap scmVars) {
     126                switch( param.Compiler ) {
    127127                        case 'gcc-6':
    128                                 return new CC_Desc('gcc-6', 'g++-6', 'gcc-6')
     128                                this.Compiler = new CC_Desc('gcc-6', 'g++-6', 'gcc-6')
    129129                        break
    130130                        case 'gcc-5':
    131                                 return new CC_Desc('gcc-5', 'g++-5', 'gcc-5')
     131                                this.Compiler = new CC_Desc('gcc-5', 'g++-5', 'gcc-5')
    132132                        break
    133133                        case 'gcc-4.9':
    134                                 return new CC_Desc('gcc-4.9', 'g++-4.9', 'gcc-4.9')
     134                                this.Compiler = new CC_Desc('gcc-4.9', 'g++-4.9', 'gcc-4.9')
    135135                        break
    136136                        case 'clang':
    137                                 return new CC_Desc('clang', 'clang++', 'gcc-6')
     137                                this.Compiler = new CC_Desc('clang', 'clang++', 'gcc-6')
    138138                        break
    139139                        default :
    140140                                error "Unhandled compiler : ${cc}"
    141141                }
    142         }
    143 
    144         def architecture_from_params( arch ) {
    145                 switch( arch ) {
     142
     143                switch( param.Architecture ) {
    146144                        case 'x64':
    147                                 return new Arch_Desc('x64', '--host=x86_64')
     145                                this.Architecture = new Arch_Desc('x64', '--host=x86_64')
    148146                        break
    149147                        case 'x86':
    150                                 return new Arch_Desc('x86', '--host=i386')
     148                                this.Architecture = new Arch_Desc('x86', '--host=i386')
    151149                        break
    152150                        default :
    153151                                error "Unhandled architecture : ${arch}"
    154152                }
    155         }
    156 
    157         BuildSettings(java.util.Collections$UnmodifiableMap param, java.util.TreeMap scmVars) {
    158                 this.Compiler         = compiler_from_params( param.Compiler )
    159                 this.Architecture       = architecture_from_params( param.Architecture )
     153
    160154                this.RunAllTests        = param.RunAllTests
    161155                this.RunBenchmark       = param.RunBenchmark
Note: See TracChangeset for help on using the changeset viewer.