ninja: Remove duplicated if check (#637)

Trivially correct
pull/627/head
Nirbheek Chauhan 8 years ago committed by Jussi Pakkanen
parent c01b183e54
commit 5351b091a8
  1. 3
      mesonbuild/backend/ninjabackend.py

@ -1703,8 +1703,7 @@ rule FORTRAN_DEP_HACK
commands += linker.thread_link_flags() commands += linker.thread_link_flags()
if not isinstance(target, build.StaticLibrary): if not isinstance(target, build.StaticLibrary):
commands += target.link_args commands += target.link_args
# External deps must be last because target link libraries may depend on them. # External deps must be last because target link libraries may depend on them.
if not(isinstance(target, build.StaticLibrary)):
for dep in target.get_external_deps(): for dep in target.get_external_deps():
commands += dep.get_link_args() commands += dep.get_link_args()
for d in target.get_dependencies(): for d in target.get_dependencies():

Loading…
Cancel
Save