Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r3b6a87c r6ebc13f  
    44// Main loop of the compilation
    55//===========================================================================================================
    6 
    7 node('master') {
     6node ('master'){
     7
    88        // Globals
    9         BuildDir  = null
    10         SrcDir    = null
     9        BuildDir  = pwd tmp: true
     10        SrcDir    = pwd tmp: false
    1111        Settings  = null
    1212        StageName = ''
     
    2626                        Settings = prepare_build()
    2727
    28                         node(Settings.Architecture.node) {
    29                                 BuildDir  = pwd tmp: true
    30                                 SrcDir    = pwd tmp: false
    31 
    32                                 clean()
    33 
    34                                 checkout()
    35 
    36                                 notify_server(0)
    37 
    38                                 build()
    39 
    40                                 test()
    41 
    42                                 benchmark()
    43 
    44                                 build_doc()
    45 
    46                                 publish()
    47                         }
     28                        clean()
     29
     30                        checkout()
     31
     32                        notify_server(0)
     33
     34                        build()
     35
     36                        test()
     37
     38                        benchmark()
     39
     40                        build_doc()
     41
     42                        publish()
    4843
    4944                        notify_server(45)
     
    8075        }
    8176}
     77
    8278//===========================================================================================================
    8379// Main compilation routines
     
    118114                        }
    119115
    120                         sh "${SrcDir}/configure CXX=${Settings.Compiler.cpp_cc} ${Settings.Architecture.flags} ${targets} --with-backend-compiler=${Settings.Compiler.cfa_cc} --quiet"
     116                        sh "${SrcDir}/configure CXX=${Settings.Compiler.CXX} CC=${Settings.Compiler.CC} ${Settings.Architecture.flags} ${targets} --quiet"
    121117
    122118                        //Compile the project
     
    239235//Description of a compiler (Must be serializable since pipelines are persistent)
    240236class CC_Desc implements Serializable {
    241         public String cc_name
    242         public String cpp_cc
    243         public String cfa_cc
    244 
    245         CC_Desc(String cc_name, String cpp_cc, String cfa_cc) {
    246                 this.cc_name = cc_name
    247                 this.cpp_cc = cpp_cc
    248                 this.cfa_cc = cfa_cc
     237        public String name
     238        public String CXX
     239        public String CC
     240
     241        CC_Desc(String name, String CXX, String CC) {
     242                this.name = name
     243                this.CXX = CXX
     244                this.CC = CC
    249245        }
    250246}
     
    254250        public String name
    255251        public String flags
    256         public String node
    257 
    258         Arch_Desc(String name, String flags, String node) {
     252
     253        Arch_Desc(String name, String flags) {
    259254                this.name  = name
    260255                this.flags = flags
    261                 this.node  = node
    262256        }
    263257}
     
    298292                switch( param.Architecture ) {
    299293                        case 'x64':
    300                                 this.Architecture = new Arch_Desc('x64', '--host=x86_64', 'x64')
     294                                this.Architecture = new Arch_Desc('x64', '--host=x86_64')
    301295                        break
    302296                        case 'x86':
    303                                 this.Architecture = new Arch_Desc('x86', '--host=i386', 'x86')
     297                                this.Architecture = new Arch_Desc('x86', '--host=i386')
    304298                        break
    305299                        default :
     
    315309
    316310                def full = param.RunAllTests ? " (Full)" : ""
    317                 this.DescShort = "${ this.Compiler.cc_name }:${ this.Architecture.name }${full}"
    318 
    319                 this.DescLong = """Compiler              : ${ this.Compiler.cc_name } (${ this.Compiler.cpp_cc }/${ this.Compiler.cfa_cc })
     311                this.DescShort = "${ this.Compiler.name }:${ this.Architecture.name }${full}"
     312
     313                this.DescLong = """Compiler              : ${ this.Compiler.name } (${ this.Compiler.CXX }/${ this.Compiler.CC })
    320314Architecture            : ${ this.Architecture.name }
    321315Arc Flags               : ${ this.Architecture.flags }
Note: See TracChangeset for help on using the changeset viewer.