Changeset fa66f4e


Ignore:
Timestamp:
Dec 6, 2016, 4:27:20 PM (8 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, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
5c81105, fef8293
Parents:
d9c44c3
Message:

Jenkins now properly uses automake cross compilation flag --host=...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    rd9c44c3 rfa66f4e  
    2323                //escapes the sandbox
    2424                //Also specify the compiler by hand
    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"
     25                sh "./configure CXX=${currentCC.cpp_cc} ${flags} --with-backend-compiler=${currentCC.cfa_backend_cc} --prefix=${install_dir} --enable-silent-rules --quiet"
    2626
    2727                //Compile the project
     
    166166
    167167                                bIsFullBuild = isFullBuild == 'true'
    168                                 architectureFlag = buildArchitecture == '64-bit' ? '-m64' : (buildArchitecture == '32-bit' ? '-m32' : 'ERROR')
     168                                architectureFlag = ''
     169                                if (buildArchitecture == '64-bit') {
     170                                        architectureFlag = '--host=x86_64 CXXFLAGS="-m64" CFAFLAGS="-m64"'
     171                                } else if (buildArchitecture == '32-bit'){
     172                                        architectureFlag = '--host=i386 CXXFLAGS="-m32" CFAFLAGS="-m32"'
     173                                } else {
     174                                        architectureFlag = 'ERROR'
     175                                }
    169176
    170177                                echo "FULL BUILD = ${isFullBuild}\nArchitecture = ${buildArchitecture} (flag ${architectureFlag})"
Note: See TracChangeset for help on using the changeset viewer.