meson.build: Make sure only first clang search dir is grabbed
The regex only works when there is two search dirs.
This commit is contained in:
parent
6a2a573e13
commit
994b33c667
|
@ -67,7 +67,7 @@ if not headers_only
|
|||
elif c_compiler.get_id() == 'clang'
|
||||
clangdir = run_command('/bin/sh', '-c',
|
||||
' '.join(c_compiler.cmd_array())
|
||||
+ ' -print-search-dirs | sed -ne "s/libraries: =\(.*\):.*/\\1/p"',
|
||||
+ ' -print-search-dirs | sed -ne "s/libraries: =\([^:]*\).*/\\1/p"',
|
||||
env: ['LANG=C'],
|
||||
check: true).stdout().strip()
|
||||
|
||||
|
|
Loading…
Reference in a new issue