| ... | @@ -1362,6 +1362,11 @@ fn testInitArrayOrder(b: *Build, opts: Options) *Step { | ... | @@ -1362,6 +1362,11 @@ fn testInitArrayOrder(b: *Build, opts: Options) *Step { |
| 1362 | exe.addObject(g_o); | 1362 | exe.addObject(g_o); |
| 1363 | exe.addObject(h_o); | 1363 | exe.addObject(h_o); |
| 1364 | | 1364 | |
| | 1365 | if (opts.target.isGnuLibC()) { |
| | 1366 | // TODO I think we need to clarify our use of `-fPIC -fPIE` flags for different targets |
| | 1367 | exe.pie = true; |
| | 1368 | } |
| | 1369 | |
| 1365 | const run = addRunArtifact(exe); | 1370 | const run = addRunArtifact(exe); |
| 1366 | run.expectStdOutEqual("21348756"); | 1371 | run.expectStdOutEqual("21348756"); |
| 1367 | test_step.dependOn(&run.step); | 1372 | test_step.dependOn(&run.step); |