Skip to content

Commit 2d9d968

Browse files
committed
fix: update Linux runtime library path handling
- Update comment to clarify that runtime_lib_dirs() provides Linux toolchain runtime library search paths instead of generic Linux-specific paths - Remove hardcoded system library paths (/lib/x86_64-linux-gnu, /usr/lib/x86_64-linux-gnu, /usr/lib64) from runtime_lib_dirs() function to rely solely on toolchain-specific paths
1 parent 624ce0e commit 2d9d968

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/platform/linux.cppm

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// Provides:
44
// build_ld_library_path() — construct LD_LIBRARY_PATH prefix
5-
// runtime_lib_dirs() — Linux-specific library search paths
5+
// runtime_lib_dirs() — Linux toolchain runtime library search paths
66

77
module;
88

@@ -19,7 +19,7 @@ export namespace mcpp::platform::linux_ {
1919
std::string build_ld_library_path_prefix(
2020
const std::vector<std::filesystem::path>& dirs);
2121

22-
// Return Linux-specific runtime library directories for LLVM toolchains.
22+
// Return Linux toolchain runtime library directories.
2323
std::vector<std::filesystem::path>
2424
runtime_lib_dirs(const std::filesystem::path& toolchain_root);
2525

@@ -56,9 +56,6 @@ runtime_lib_dirs(const std::filesystem::path& toolchain_root) {
5656
dirs.push_back(p);
5757
};
5858
add(toolchain_root / "lib" / "x86_64-unknown-linux-gnu");
59-
add("/lib/x86_64-linux-gnu");
60-
add("/usr/lib/x86_64-linux-gnu");
61-
add("/usr/lib64");
6259
#else
6360
(void)toolchain_root;
6461
#endif

0 commit comments

Comments
 (0)