diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-07-04 19:44:00 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-07-04 19:44:00 +0300 |
commit | 58688a656eaf337b941c4b5159114a51637f0f48 (patch) | |
tree | 1819161b68e6628b357d71b3c873c645baced443 /libbuild2 | |
parent | 4dbf2933be3b241d5b9f28bf227a01e1fa5c82ec (diff) |
Drop -I/-L fragments oversplit-related workaround
Diffstat (limited to 'libbuild2')
-rw-r--r-- | libbuild2/cc/pkgconfig-libpkg-config.cxx | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/libbuild2/cc/pkgconfig-libpkg-config.cxx b/libbuild2/cc/pkgconfig-libpkg-config.cxx index ee5a11f..0a9165a 100644 --- a/libbuild2/cc/pkgconfig-libpkg-config.cxx +++ b/libbuild2/cc/pkgconfig-libpkg-config.cxx @@ -73,22 +73,9 @@ namespace build2 // if (opt != nullptr) { - // @@ TMP (hopefully). - // - // Note that we should restore the directory path that was - // (mis)interpreted as an option, for example: - // - // -I -Ifoo - // - // In the above example option '-I' is followed by directory - // '-Ifoo', which is represented by libpkgconf library as fragment - // 'foo' with type 'I'. - // - if (!pkgconf_path_match_list ( - frag->type == '\0' - ? frag->data - : (string ({'-', frag->type}) + frag->data).c_str (), - &sysdirs)) + assert (frag->type == '\0'); // See pkgconf_fragment_add(). + + if (!pkgconf_path_match_list (frag->data, &sysdirs)) { add (opt); add (frag); |