forked from ziglang/zig
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
std.zig.system.NativeTargetInfo: improve examined file search
* Append Termux-specific path to `zig_examined_elf_files` to workaround different path for `env` binary. See also ziglang#14146 * Use same buffer for searching shebang line to search ELF magic constant, if any, and remove corresponding (now duplicate) check from `abiAndDynamicLinkerFromFile` * Fix not finding interpret path when it it separater from shebang by one or more blank spaces * Fix too big minimal limit of bytes from file (minimal shebang length instead of `buffer.len`) Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
- Loading branch information
1 parent
64d03fa
commit 3648727
Showing
1 changed file
with
51 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters