fix: close the VBS-side gaps noted on Void/Library#61
This commit is contained in:
1 parent
4f581d1b51
commit
4d51331777
13 files changed
+158
-14
No files matched your search
@@ -1065,6 +1065,11 @@ run_native_provider(const ProviderRequest &request, const std::filesystem::path
|
||||
if (request.sdk_library_path) {
|
||||
fopts.sdk_library_path = *request.sdk_library_path;
|
||||
}
|
||||
// Pass the consumer's `.native_builder({...})` options to the dependency's build.cpp.
|
||||
fopts.extra_environment["VBS_DEP_NAME"] = request.dependency.name;
|
||||
for (const auto &[key, value] : request.dependency.options) {
|
||||
fopts.extra_environment["VBS_DEP_OPTION_" + key] = cmake_option_value(value);
|
||||
}
|
||||
auto compiled = Config::compile_descriptor(fopts);
|
||||
if (!compiled) {
|
||||
return std::unexpected{compiled.error()};
|
||||
|
||||
Reference in new issue
Block a user