diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-02-25 02:52:49 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-02-28 14:51:53 -0500 |
| commit | d4f375c46be2e509ee9161b0577d8a25d6620b3e (patch) | |
| tree | c79f706ad52702e62b615e94e702ff625b957575 /src/compiler.cpp | |
| parent | 4616af0ca459358ffa09ba27f9daa8527a38fd35 (diff) | |
| download | zig-d4f375c46be2e509ee9161b0577d8a25d6620b3e.tar.gz zig-d4f375c46be2e509ee9161b0577d8a25d6620b3e.zip | |
stage1: remove get_self_libc_path
and glibc_detect_native_version
Diffstat (limited to 'src/compiler.cpp')
| -rw-r--r-- | src/compiler.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/compiler.cpp b/src/compiler.cpp index 31bac4ee24..cddecc2025 100644 --- a/src/compiler.cpp +++ b/src/compiler.cpp @@ -4,31 +4,6 @@ #include <stdio.h> -Buf *get_self_libc_path(void) { - static Buf saved_libc_path = BUF_INIT; - static bool searched_for_libc = false; - - for (;;) { - if (saved_libc_path.list.length != 0) { - return &saved_libc_path; - } - if (searched_for_libc) - return nullptr; - ZigList<Buf *> lib_paths = {}; - Error err; - if ((err = os_self_exe_shared_libs(lib_paths))) - return nullptr; - for (size_t i = 0; i < lib_paths.length; i += 1) { - Buf *lib_path = lib_paths.at(i); - if (buf_ends_with_str(lib_path, "libc.so.6")) { - buf_init_from_buf(&saved_libc_path, lib_path); - return &saved_libc_path; - } - } - searched_for_libc = true; - } -} - Error get_compiler_id(Buf **result) { static Buf saved_compiler_id = BUF_INIT; |
