environment: Fix detection of swift linker

Apparently in some cases swift prints to stderr instead of stdout
pull/7946/head
Dylan Baker 4 years ago committed by Jussi Pakkanen
parent c9b7e5bd40
commit 712cbe0568
  1. 4
      mesonbuild/environment.py

@ -1034,8 +1034,8 @@ class Environment:
else:
v = 'unknown version'
linker = AppleDynamicLinker(compiler, for_machine, comp_class.LINKER_PREFIX, override, version=v)
elif 'GNU' in o:
if 'gold' in o:
elif 'GNU' in o or 'GNU' in e:
if 'gold' in o or 'gold' in e:
cls = GnuGoldDynamicLinker
else:
cls = GnuBFDDynamicLinker

Loading…
Cancel
Save