dependencies/llvm: strip default include dirs also for config-tool version

This should have been done in my earlier fix, but kinda forgot to test and
fix it there as well.

See https://github.com/mesonbuild/meson/pull/11733 for the discussion.

Fixes: 8284be813 ("dependencies/llvm: strip default include dirs")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
This commit is contained in:
Karol Herbst 2023-12-11 16:58:58 +01:00 committed by Nirbheek Chauhan
parent 059b9e048d
commit 0c3e84bbaf
1 changed files with 1 additions and 0 deletions

View File

@ -218,6 +218,7 @@ class LLVMDependencyConfigTool(ConfigToolDependency):
cargs = mesonlib.OrderedSet(self.get_config_value(['--cppflags'], 'compile_args'))
self.compile_args = list(cargs.difference(self.__cpp_blacklist))
self.compile_args = strip_system_includedirs(environment, self.for_machine, self.compile_args)
if version_compare(self.version, '>= 3.9'):
self._set_new_link_args(environment)