Do not unpack link_whole target, BuildTarget.link_whole() does listify() anyway

pull/3146/head
Aleksey Filippov 7 years ago committed by Jussi Pakkanen
parent cb176e9303
commit 8c3a1afde0
  1. 4
      mesonbuild/build.py

@ -658,10 +658,6 @@ just like those detected with the dependency() function.''')
self.link(linktarget)
lwhole = extract_as_list(kwargs, 'link_whole')
for linktarget in lwhole:
# Sorry for this hack. Keyword targets are kept in holders
# in kwargs. Unpack here without looking at the exact type.
if hasattr(linktarget, "held_object"):
linktarget = linktarget.held_object
self.link_whole(linktarget)
c_pchlist, cpp_pchlist, clist, cpplist, cslist, valalist, objclist, objcpplist, fortranlist, rustlist \

Loading…
Cancel
Save