[Mesa-dev] [PATCH 2/2] configure: Add support for the Intel Vulkan driver
Chuck Atkins
chuck.atkins at kitware.com
Fri Apr 15 17:12:02 UTC 2016
>
> > Put x in front of everything:
> >
> Which reminds me - what are the advantages of it ? In the gallium
> drivers (where this is derived from) and I've not seen any issues.
> Mostly curious, I'm fine with or without the x.
>
It prevents empty string problems. If the variable is undefined or
explicitly empty then "x$foo" results in "x" where as "$foo" is just "",
which depending on how carefully escaping and or quoting is done, can
sometimes disappear entirely as a separate argument instead of an empty
string argument. Adding the x just prevents you from having to bother with
empty string workarounds entirely.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160415/48368f79/attachment.html>
More information about the mesa-dev
mailing list