feat(platform,daemon): isolate executable lookup and report host backends
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 3s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 8s

This commit is contained in:
faumaray committed 2026-12-04 04:15:42 +03:00
1 parent 105519924a
commit 9f4477b8d4
10 files changed
+93 -7

No files matched your search

+4 -6
View File
@@ -128,9 +128,8 @@ make_frontend_opts(const std::filesystem::path &project_root,
opts.sdk_source_dir = std::filesystem::path{Bootstrap::sdk_source_dir};
std::error_code ec;
std::vector<std::filesystem::path> sdk_candidates;
if (const auto self_exe = std::filesystem::read_symlink("/proc/self/exe", ec);
!ec && !self_exe.empty()) {
const auto self_root = self_exe.parent_path().parent_path();
if (const auto self_exe = Platform::current_executable_path(); self_exe) {
const auto self_root = self_exe->parent_path().parent_path();
sdk_candidates.push_back(self_root / "libVoidBuildSdk.a");
sdk_candidates.push_back(self_root / "libVoidBuild_Sdk.a");
sdk_candidates.push_back(self_root / "lib" / "libVoidBuildSdk.a");
@@ -2287,9 +2286,8 @@ int execute_ide_command(std::string_view sub, const IdeCmdOptions &opts) {
}
std::filesystem::path vbs_exe{"vbs"};
if (const auto self_exe = std::filesystem::read_symlink("/proc/self/exe", ec);
!ec && !self_exe.empty()) {
vbs_exe = self_exe;
if (const auto self_exe = Platform::current_executable_path(); self_exe) {
vbs_exe = *self_exe;
}
Editor::IdeConfigOptions ide_opts;