mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
gfxstream: Handle tmp folder explicitly on codegen
Avoid getting different relative folders for tmp folder when the code is generated from different checkout locations. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31400>
This commit is contained in:
parent
73ac603f9d
commit
27295ca4d0
1 changed files with 2 additions and 1 deletions
|
|
@ -234,7 +234,8 @@ def banner_command(argv):
|
|||
paths removed."""
|
||||
|
||||
def makePosixRelative(someArg):
|
||||
if os.path.exists(someArg):
|
||||
# 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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue