| ... | @@ -338,6 +338,70 @@ const test_targets = blk: { | ... | @@ -338,6 +338,70 @@ const test_targets = blk: { |
| 338 | .link_libc = true, | 338 | .link_libc = true, |
| 339 | }, | 339 | }, |
| 340 | | 340 | |
| | 341 | .{ |
| | 342 | .target = .{ |
| | 343 | .cpu_arch = .thumb, |
| | 344 | .os_tag = .linux, |
| | 345 | .abi = .eabi, |
| | 346 | }, |
| | 347 | }, |
| | 348 | .{ |
| | 349 | .target = .{ |
| | 350 | .cpu_arch = .thumb, |
| | 351 | .os_tag = .linux, |
| | 352 | .abi = .eabihf, |
| | 353 | }, |
| | 354 | }, |
| | 355 | .{ |
| | 356 | .target = .{ |
| | 357 | .cpu_arch = .thumb, |
| | 358 | .os_tag = .linux, |
| | 359 | .abi = .musleabi, |
| | 360 | }, |
| | 361 | .link_libc = true, |
| | 362 | .skip_modules = &.{"std"}, |
| | 363 | }, |
| | 364 | .{ |
| | 365 | .target = .{ |
| | 366 | .cpu_arch = .thumb, |
| | 367 | .os_tag = .linux, |
| | 368 | .abi = .musleabihf, |
| | 369 | }, |
| | 370 | .link_libc = true, |
| | 371 | .skip_modules = &.{"std"}, |
| | 372 | }, |
| | 373 | // Calls are normally lowered to branch instructions that only support +/- 16 MB range when |
| | 374 | // targeting Thumb. This is not sufficient for the std test binary linked statically with |
| | 375 | // musl, so use long calls to avoid out-of-range relocations. |
| | 376 | .{ |
| | 377 | .target = std.Target.Query.parse(.{ |
| | 378 | .arch_os_abi = "thumb-linux-musleabi", |
| | 379 | .cpu_features = "baseline+long_calls", |
| | 380 | }) catch @panic("OOM"), |
| | 381 | .link_libc = true, |
| | 382 | .pic = false, // Long calls don't work with PIC. |
| | 383 | .skip_modules = &.{ |
| | 384 | "behavior", |
| | 385 | "c-import", |
| | 386 | "compiler-rt", |
| | 387 | "universal-libc", |
| | 388 | }, |
| | 389 | }, |
| | 390 | .{ |
| | 391 | .target = std.Target.Query.parse(.{ |
| | 392 | .arch_os_abi = "thumb-linux-musleabihf", |
| | 393 | .cpu_features = "baseline+long_calls", |
| | 394 | }) catch @panic("OOM"), |
| | 395 | .link_libc = true, |
| | 396 | .pic = false, // Long calls don't work with PIC. |
| | 397 | .skip_modules = &.{ |
| | 398 | "behavior", |
| | 399 | "c-import", |
| | 400 | "compiler-rt", |
| | 401 | "universal-libc", |
| | 402 | }, |
| | 403 | }, |
| | 404 | |
| 341 | .{ | 405 | .{ |
| 342 | .target = .{ | 406 | .target = .{ |
| 343 | .cpu_arch = .mips, | 407 | .cpu_arch = .mips, |