From 58688a656eaf337b941c4b5159114a51637f0f48 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 4 Jul 2022 19:44:00 +0300 Subject: Drop -I/-L fragments oversplit-related workaround --- libbuild2/cc/pkgconfig-libpkg-config.cxx | 19 +++---------------- 1 file 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); -- cgit v1.1