Skip to content

Commit

Permalink
use python to determine dynamic-linker
Browse files Browse the repository at this point in the history
The last commit didn't work. Let's try this temporary work-around
based on the solution in the zig#14577.

ziglang#14577
  • Loading branch information
rzezeski committed Sep 1, 2023
1 parent 1a5c1c9 commit a172918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/zig/system/NativeTargetInfo.zig
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ fn detectAbiAndDynamicLinker(

// Since /usr/bin/env is hard-coded into the shebang line of many portable scripts, it's a
// reasonably reliable path to start with.
var file_name: []const u8 = "/usr/bin/env";
var file_name: []const u8 = "/usr/bin/python3.11";
// #! (2) + 255 (max length of shebang line since Linux 5.1) + \n (1)
var buffer: [258]u8 = undefined;
while (true) {
Expand Down

0 comments on commit a172918

Please sign in to comment.