Changeset 97144e2 for Jenkinsfile
- Timestamp:
- Aug 17, 2018, 2:03:31 PM (6 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
r94c9b810 r97144e2 123 123 public final String DescShort 124 124 125 def compiler_from_params(cc) {126 switch( cc) {125 BuildSettings(java.util.Collections$UnmodifiableMap param, java.util.TreeMap scmVars) { 126 switch( param.Compiler ) { 127 127 case 'gcc-6': 128 returnnew CC_Desc('gcc-6', 'g++-6', 'gcc-6')128 this.Compiler = new CC_Desc('gcc-6', 'g++-6', 'gcc-6') 129 129 break 130 130 case 'gcc-5': 131 returnnew CC_Desc('gcc-5', 'g++-5', 'gcc-5')131 this.Compiler = new CC_Desc('gcc-5', 'g++-5', 'gcc-5') 132 132 break 133 133 case 'gcc-4.9': 134 returnnew 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') 135 135 break 136 136 case 'clang': 137 returnnew CC_Desc('clang', 'clang++', 'gcc-6')137 this.Compiler = new CC_Desc('clang', 'clang++', 'gcc-6') 138 138 break 139 139 default : 140 140 error "Unhandled compiler : ${cc}" 141 141 } 142 } 143 144 def architecture_from_params( arch ) { 145 switch( arch ) { 142 143 switch( param.Architecture ) { 146 144 case 'x64': 147 returnnew Arch_Desc('x64', '--host=x86_64')145 this.Architecture = new Arch_Desc('x64', '--host=x86_64') 148 146 break 149 147 case 'x86': 150 returnnew Arch_Desc('x86', '--host=i386')148 this.Architecture = new Arch_Desc('x86', '--host=i386') 151 149 break 152 150 default : 153 151 error "Unhandled architecture : ${arch}" 154 152 } 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 160 154 this.RunAllTests = param.RunAllTests 161 155 this.RunBenchmark = param.RunBenchmark
Note: See TracChangeset
for help on using the changeset viewer.