mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
gfxstream: don't dump genvk.py args to generated files
Full command lines include full path to the output file, which triggers reproducibility warnings (e.g. in Yocto builds). Drop the args and print only a basename of the script used to generate the file. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38875>
This commit is contained in:
parent
ffbe6470a2
commit
4315c28739
1 changed files with 1 additions and 7 deletions
|
|
@ -285,13 +285,7 @@ def banner_command(argv):
|
||||||
Return a string corresponding to the command, with platform-specific
|
Return a string corresponding to the command, with platform-specific
|
||||||
paths removed."""
|
paths removed."""
|
||||||
|
|
||||||
def makePosixRelative(someArg):
|
return os.path.basename(argv[0])
|
||||||
# Do not use relative for /tmp/ to avoid effects of checkout location
|
|
||||||
if os.path.exists(someArg) and someArg != "/tmp/":
|
|
||||||
return str(PurePosixPath(Path(os.path.relpath(someArg))))
|
|
||||||
return someArg
|
|
||||||
|
|
||||||
return ' '.join(map(makePosixRelative, argv))
|
|
||||||
|
|
||||||
def envGetOrDefault(key, default=None):
|
def envGetOrDefault(key, default=None):
|
||||||
if key in os.environ:
|
if key in os.environ:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue