Skip to content

Commit 2e22ab8

Browse files
author
Jeff Hammond
authored
[Buildbot] Add ARM target option to configure.py (#2322)
This has been tested on Raspberry Pi 4 and Cavium ThunderX2 running Ubuntu AArch64. The build also depends on my fixes for #2304, but those are not ready. Nonetheless, this fix is independent of that one and can be merged without side effects. There is a clearly a more general solution here, but it seems imprudent to add architectures to the buildbot testing until they have actually been tested somewhere. Once I have a chance to test on PowerPC, I'll see about adding that as an explicit target, or provide a more general solution (e.g. `--arch=..`). Signed-off-by: Jeff R. Hammond <[email protected]>
1 parent 13e8dae commit 2e22ab8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

buildbot/configure.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ def do_configure(args):
3838
libclc_targets_to_build = 'nvptx64--;nvptx64--nvidiacl'
3939
sycl_build_pi_cuda = 'ON'
4040

41+
# replace not append, so ARM ^ X86
42+
if args.arm:
43+
llvm_targets_to_build = 'ARM;AArch64'
44+
4145
if args.no_werror:
4246
sycl_werror = 'OFF'
4347

@@ -128,6 +132,7 @@ def main():
128132
parser.add_argument("-t", "--build-type",
129133
metavar="BUILD_TYPE", default="Release", help="build type: Debug, Release")
130134
parser.add_argument("--cuda", action='store_true', help="switch from OpenCL to CUDA")
135+
parser.add_argument("--arm", action='store_true', help="build ARM support rather than x86")
131136
parser.add_argument("--no-assertions", action='store_true', help="build without assertions")
132137
parser.add_argument("--docs", action='store_true', help="build Doxygen documentation")
133138
parser.add_argument("--system-ocl", action='store_true', help="use OpenCL deps from system (no download)")

0 commit comments

Comments
 (0)