Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r6ebc13f r3b6a87c  
    44// Main loop of the compilation
    55//===========================================================================================================
    6 node ('master'){
    7 
     6
     7node('master') {
    88        // Globals
    9         BuildDir  = pwd tmp: true
    10         SrcDir    = pwd tmp: false
     9        BuildDir  = null
     10        SrcDir    = null
    1111        Settings  = null
    1212        StageName = ''
     
    2626                        Settings = prepare_build()
    2727
    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()
     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                        }
    4348
    4449                        notify_server(45)
     
    7580        }
    7681}
    77 
    7882//===========================================================================================================
    7983// Main compilation routines
     
    114118                        }
    115119
    116                         sh "${SrcDir}/configure CXX=${Settings.Compiler.CXX} CC=${Settings.Compiler.CC} ${Settings.Architecture.flags} ${targets} --quiet"
     120                        sh "${SrcDir}/configure CXX=${Settings.Compiler.cpp_cc} ${Settings.Architecture.flags} ${targets} --with-backend-compiler=${Settings.Compiler.cfa_cc} --quiet"
    117121
    118122                        //Compile the project
     
    235239//Description of a compiler (Must be serializable since pipelines are persistent)
    236240class CC_Desc implements Serializable {
    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
     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
    245249        }
    246250}
     
    250254        public String name
    251255        public String flags
    252 
    253         Arch_Desc(String name, String flags) {
     256        public String node
     257
     258        Arch_Desc(String name, String flags, String node) {
    254259                this.name  = name
    255260                this.flags = flags
     261                this.node  = node
    256262        }
    257263}
     
    292298                switch( param.Architecture ) {
    293299                        case 'x64':
    294                                 this.Architecture = new Arch_Desc('x64', '--host=x86_64')
     300                                this.Architecture = new Arch_Desc('x64', '--host=x86_64', 'x64')
    295301                        break
    296302                        case 'x86':
    297                                 this.Architecture = new Arch_Desc('x86', '--host=i386')
     303                                this.Architecture = new Arch_Desc('x86', '--host=i386', 'x86')
    298304                        break
    299305                        default :
     
    309315
    310316                def full = param.RunAllTests ? " (Full)" : ""
    311                 this.DescShort = "${ this.Compiler.name }:${ this.Architecture.name }${full}"
    312 
    313                 this.DescLong = """Compiler              : ${ this.Compiler.name } (${ this.Compiler.CXX }/${ this.Compiler.CC })
     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 })
    314320Architecture            : ${ this.Architecture.name }
    315321Arc Flags               : ${ this.Architecture.flags }
Note: See TracChangeset for help on using the changeset viewer.