2
0
mirror of https://github.com/boostorg/dll.git synced 2026-01-31 08:02:19 +00:00

b2 workarounds for Windows platform

This commit is contained in:
Antony Polukhin
2015-09-15 22:03:58 +03:00
parent f975a4137e
commit 0a696bb22d
3 changed files with 24 additions and 16 deletions

View File

@@ -42,8 +42,10 @@ std::size_t search_for_symbols(const std::vector<boost::filesystem::path>& plugi
int main(int argc, char* argv[]) {
BOOST_ASSERT(argc >= 3);
std::vector<boost::filesystem::path> plugins;
plugins.push_back(argv[1]);
plugins.push_back(argv[2]);
plugins.reserve(argc - 1);
for (int i = 1; i < argc; ++i) {
plugins.push_back(argv[i]);
}
const std::size_t res = search_for_symbols(plugins);
BOOST_ASSERT(res == 1);