|
164 | 164 |
|
165 | 165 | {'name' : "llvm-clang-win-x-aarch64-release", |
166 | 166 | 'tags' : ["clang", "llvm", "compiler-rt", "cross", "aarch64"], |
167 | | - 'workernames' : ["as-builder-6"], |
| 167 | + 'workernames' : ["as-builder-2"], |
168 | 168 | 'builddir': "x-aarch64-rel", |
169 | | - 'factory' : XToolchainBuilder.getCmakeWithMSVCBuildFactory( |
170 | | - vs="autodetect", |
171 | | - clean=True, |
172 | | - checks=[ |
| 169 | + 'factory' : UnifiedTreeBuilder.getCmakeExBuildFactory( |
| 170 | + depends_on_projects = [ |
| 171 | + 'llvm', |
| 172 | + 'compiler-rt', |
| 173 | + 'clang', |
| 174 | + 'clang-tools-extra', |
| 175 | + 'libunwind', |
| 176 | + 'libcxx', |
| 177 | + 'libcxxabi', |
| 178 | + 'lld', |
| 179 | + ], |
| 180 | + vs = "autodetect", |
| 181 | + clean = True, |
| 182 | + checks = [ |
173 | 183 | "check-llvm", |
174 | 184 | "check-clang", |
175 | 185 | "check-lld", |
|
179 | 189 | ("libunwind", |
180 | 190 | ["python", "bin/llvm-lit.py", |
181 | 191 | "-v", "-vv", "--threads=32", |
182 | | - "runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libunwind/test"]), |
| 192 | + "runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libunwind/test", |
| 193 | + ]), |
183 | 194 | ("libc++abi", |
184 | 195 | ["python", "bin/llvm-lit.py", |
185 | 196 | "-v", "-vv", "--threads=32", |
186 | | - "runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxxabi/test"]), |
| 197 | + "runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxxabi/test", |
| 198 | + ]), |
187 | 199 | ("libc++", |
188 | 200 | ['python', 'bin/llvm-lit.py', |
189 | 201 | '-v', '-vv', '--threads=32', |
190 | 202 | 'runtimes/runtimes-aarch64-unknown-linux-gnu-bins/libcxx/test', |
191 | 203 | ]) |
192 | 204 | ], |
193 | | - extra_configure_args=[ |
194 | | - "-DLLVM_TARGETS_TO_BUILD=AArch64", |
195 | | - "-DTOOLCHAIN_TARGET_TRIPLE=aarch64-unknown-linux-gnu", |
196 | | - util.Interpolate("-DTOOLCHAIN_TARGET_SYSROOTFS=%(prop:sysroot_path_aarch64)s"), |
197 | | - util.Interpolate("-DZLIB_ROOT=%(prop:zlib_root_path)s"), |
198 | | - "-DLLVM_LIT_ARGS=-v -vv --threads=32", |
199 | | - util.Interpolate("%(prop:remote_test_host:+-DREMOTE_TEST_HOST=)s%(prop:remote_test_host:-)s"), |
200 | | - util.Interpolate("%(prop:remote_test_user:+-DREMOTE_TEST_USER=)s%(prop:remote_test_user:-)s"), |
| 205 | + cmake_definitions = { |
| 206 | + "LLVM_TARGETS_TO_BUILD" : "AArch64", |
| 207 | + "LLVM_INCLUDE_BENCHMARKS" : "OFF", |
| 208 | + "LLVM_LIT_ARGS" : "-v -vv --threads=32 --time-tests", |
| 209 | + "TOOLCHAIN_TARGET_TRIPLE" : "aarch64-unknown-linux-gnu", |
| 210 | + "TOOLCHAIN_TARGET_SYSROOTFS" : util.Interpolate("%(prop:sysroot_path_tx2)s"), |
| 211 | + "REMOTE_TEST_HOST" : util.Interpolate("%(prop:remote_host_tx2_rel)s"), |
| 212 | + "REMOTE_TEST_USER" : util.Interpolate("%(prop:remote_user_tx2_rel)s"), |
| 213 | + "ZLIB_ROOT" : util.Interpolate("%(prop:zlib_root_path)s"), |
| 214 | + "CMAKE_CXX_FLAGS" : "-D__OPTIMIZE__", |
| 215 | + "CMAKE_C_COMPILER_LAUNCHER" : "ccache", |
| 216 | + "CMAKE_CXX_COMPILER_LAUNCHER" : "ccache", |
| 217 | + }, |
| 218 | + cmake_options = [ |
| 219 | + "-C", util.Interpolate("%(prop:srcdir_relative)s/clang/cmake/caches/CrossWinToARMLinux.cmake"), |
| 220 | + ], |
| 221 | + install_dir = "install", |
| 222 | + post_finalize_steps = [ |
| 223 | + #Note: requires for Jetson TX2/Linux Ubuntu 18. |
| 224 | + steps.ShellCommand(name = "restart-target-finalize", |
| 225 | + command = [ "ssh", util.Interpolate("%(prop:remote_user_tx2_rel)s@%(prop:remote_host_tx2_rel)s"), |
| 226 | + "((sleep 5 && sudo reboot) > /dev/null 2>&1 &); exit 0;" |
| 227 | + ], |
| 228 | + alwaysRun = True, |
| 229 | + ), |
201 | 230 | ], |
202 | | - cmake_cache="../llvm-project/clang/cmake/caches/CrossWinToARMLinux.cmake")}, |
| 231 | + env = { |
| 232 | + 'CCACHE_DIR' : util.Interpolate("%(prop:builddir)s/ccache-db"), |
| 233 | + }, |
| 234 | + ) |
| 235 | + }, |
203 | 236 |
|
204 | 237 | # LLD builders. |
205 | 238 |
|
|
0 commit comments