Changeset 94c9b810
- Timestamp:
- Aug 17, 2018, 2:01:19 PM (7 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:
- 97144e2
- Parents:
- 3ad40e2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified Jenkinsfile ¶
r3ad40e2 r94c9b810 83 83 // Helper classes/variables/routines 84 84 //=========================================================================================================== 85 //Description of a compiler (Must be serializable since pipelines are persistent) 86 class CC_Desc implements Serializable { 87 public String cc_name 88 public String cpp_cc 89 public String cfa_cc 90 91 CC_Desc(String cc_name, String cpp_cc, String cfa_cc) { 92 this.cc_name = cc_name 93 this.cpp_cc = cpp_cc 94 this.cfa_cc = cfa_cc 95 } 96 } 97 98 //Description of an architecture (Must be serializable since pipelines are persistent) 99 class Arch_Desc implements Serializable { 100 public String name 101 public String flags 102 103 Arch_Desc(String name, String flags) { 104 this.name = name 105 this.flags = flags 106 } 107 } 108 85 109 class BuildSettings implements Serializable { 86 110 public final CC_Desc Compiler … … 99 123 public final String DescShort 100 124 101 102 //Description of a compiler (Must be serializable since pipelines are persistent) 103 private class CC_Desc implements Serializable { 104 public String cc_name 105 public String cpp_cc 106 public String cfa_cc 107 108 CC_Desc(String cc_name, String cpp_cc, String cfa_cc) { 109 this.cc_name = cc_name 110 this.cpp_cc = cpp_cc 111 this.cfa_cc = cfa_cc 112 } 113 } 114 115 private static CC_Desc compiler_from_params(String cc) { 125 def compiler_from_params(cc) { 116 126 switch( cc ) { 117 127 case 'gcc-6': … … 132 142 } 133 143 134 //Description of an architecture (Must be serializable since pipelines are persistent) 135 private class Arch_Desc implements Serializable { 136 public String name 137 public String flags 138 139 Arch_Desc(String name, String flags) { 140 this.name = name 141 this.flags = flags 142 } 143 } 144 145 private static Arch_Desc architecture_from_params( String arch ) { 144 def architecture_from_params( arch ) { 146 145 switch( arch ) { 147 146 case 'x64': … … 157 156 158 157 BuildSettings(java.util.Collections$UnmodifiableMap param, java.util.TreeMap scmVars) { 159 this.Compiler = BuildSettings.compiler_from_params( param.Compiler )160 this.Architecture = BuildSettings.architecture_from_params( param.Architecture )158 this.Compiler = compiler_from_params( param.Compiler ) 159 this.Architecture = architecture_from_params( param.Architecture ) 161 160 this.RunAllTests = param.RunAllTests 162 161 this.RunBenchmark = param.RunBenchmark
Note: See TracChangeset
for help on using the changeset viewer.