Skip to content

Commit

Permalink
wip: try to get system dependency working on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker committed Sep 6, 2024
1 parent 90de2f2 commit f81683b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mesonbuild/dependencies/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,13 @@ def __init__(self, name: str, env: Environment, kwargs: T.Dict[str, T.Any], lang

dirs: T.List[T.List[str]] = [[llvm.get_variable(configtool='libdir', cmake='LLVM_LIBRARY_DIR')], []]

# Need the Windows version.dll library for the C++ interface
m = self.env.machines[self.for_machine]
assert m is not None, 'for mypy'
if m.is_windows() and language == 'cpp':
libver = self.clib_compiler.find_library('version', env, [])
self.link_args = libver if libver is not None else []

# Clang provides up to two interfaces for C++ code, and only one for C
#
# For C++ you can use libclang-cpp.so, or you can use loose static
Expand Down Expand Up @@ -587,7 +594,7 @@ def __init__(self, name: str, env: Environment, kwargs: T.Dict[str, T.Any], lang

if not self.version_reqs or mesonlib.version_compare_many(version, self.version_reqs):
self.version = version
self.link_args = lib
self.link_args.extend(lib)
self.is_found = True
return

Expand Down

0 comments on commit f81683b

Please sign in to comment.