Meson: Do not wrap fccache insallation script
When passing fccache executable directly Meson does special tricks such as modifying $PATH on Windows. See: https://github.com/mesonbuild/meson/pull/8259 Fixes: #260
This commit is contained in:
parent
58c6633d6c
commit
b58f2798e2
|
@ -39,7 +39,6 @@ MESON_FILES = \
|
|||
doc/run-quiet.py \
|
||||
fc-case/fc-case.py \
|
||||
fc-lang/fc-lang.py \
|
||||
install-cache.py \
|
||||
meson.build \
|
||||
meson_options.txt \
|
||||
src/cutout.py \
|
||||
|
|
|
@ -9,5 +9,5 @@ tools_man_pages += ['fc-cache']
|
|||
|
||||
# Do not try to execute target's fc-cache on host when cross compiling
|
||||
if not meson.is_cross_build()
|
||||
meson.add_install_script('../install-cache.py', fccache.full_path())
|
||||
meson.add_install_script(fccache, '-s', '-f', '-v')
|
||||
endif
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
import argparse
|
||||
import subprocess
|
||||
|
||||
if __name__=='__main__':
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('fccache')
|
||||
args = parser.parse_args()
|
||||
sys.exit(subprocess.run([args.fccache, '-s', '-f', '-v']).returncode)
|
Loading…
Reference in New Issue