Changeset c0588909 for Jenkinsfile


Ignore:
Timestamp:
Jul 11, 2016, 5:24:47 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
6f72453
Parents:
deefdc1
Message:

added 32bit/64bit flags to compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    rdeefdc1 rc0588909  
    55//===========================================================================================================
    66//Compilation script is done here but environnement set-up and error handling is done in main loop
    7 def cfa_build(boolean full_build) {
     7def cfa_build(boolean full_build, String flags) {
    88        build_stage 'Checkout'
    99                def install_dir = pwd tmp: true
     
    2323                //escapes the sandbox
    2424                //Also specify the compiler by hand
    25                 sh "./configure CXX=${currentCC.cpp_cc} --with-backend-compiler=${currentCC.cfa_backend_cc} --prefix=${install_dir} --enable-silent-rules --quiet"
     25                sh "./configure CXX=${currentCC.cpp_cc} CXXFLAGS=${flags} CFAFLAGS=${flags} --with-backend-compiler=${currentCC.cfa_backend_cc} --prefix=${install_dir} --enable-silent-rules --quiet"
    2626
    2727                //Compile the project
     
    193193                                //Compile using gcc-4.9
    194194                                currentCC = new CC_Desc('gcc-4.9', 'g++-4.9', 'gcc-4.9')
    195                                 cfa_build(doPromoteBuild2DoLang)
     195                                cfa_build(doPromoteBuild2DoLang, architectureFlag)
    196196
    197197                                //Compile latex documentation
     
    201201                                        //Compile using gcc-5
    202202                                        currentCC = new CC_Desc('gcc-5', 'g++-5', 'gcc-5')
    203                                         cfa_build(true)
     203                                        cfa_build(true, architectureFlag)
    204204
    205205                                        //Compile using gcc-4.9
    206206                                        currentCC = new CC_Desc('gcc-6', 'g++-6', 'gcc-6')
    207                                         cfa_build(true)
     207                                        cfa_build(true, architectureFlag)
    208208
    209209                                        //Push latest changes to do-lang repo
     
    229229        finally {
    230230                //Send email with final results
    231                 //notify_result(doPromoteBuild2DoLang, err, currentBuild.result, log_needed)
     231                notify_result(doPromoteBuild2DoLang, err, currentBuild.result, log_needed)
    232232
    233233                /* Must re-throw exception to propagate error */
Note: See TracChangeset for help on using the changeset viewer.