llvm: don't add --system-libs

On LLVM < 4.0 this adds linker arguments like -lm, which we don't want.

Related #2442, 2437
pull/2449/head
Dylan Baker 7 years ago committed by Jussi Pakkanen
parent 97cf0ec01b
commit e8df59cc5f
  1. 2
      mesonbuild/dependencies/dev.py

@ -169,7 +169,7 @@ class LLVMDependency(ExternalDependency):
self.version = out.strip().rstrip('svn')
p, out = Popen_safe(
[self.llvmconfig, '--libs', '--ldflags', '--system-libs'])[:2]
[self.llvmconfig, '--libs', '--ldflags'])[:2]
if p.returncode != 0:
raise DependencyException('Could not generate libs for LLVM.')
self.link_args = shlex.split(out)

Loading…
Cancel
Save