From a1729187c17431d73bbdb9aee85780a6667e0b4b Mon Sep 17 00:00:00 2001 From: Ryan Zezeski Date: Thu, 31 Aug 2023 22:29:13 -0600 Subject: [PATCH] use python to determine dynamic-linker The last commit didn't work. Let's try this temporary work-around based on the solution in the zig#14577. https://github.com/ziglang/zig/issues/14577 --- lib/std/zig/system/NativeTargetInfo.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/zig/system/NativeTargetInfo.zig b/lib/std/zig/system/NativeTargetInfo.zig index 99a1a8f2efac..97e9c31db68f 100644 --- a/lib/std/zig/system/NativeTargetInfo.zig +++ b/lib/std/zig/system/NativeTargetInfo.zig @@ -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) {