On 20/03/18 14:48, Lionel Landwerlin wrote:
In tree builds are failing because os.path.basename() doesn't seem to
deal well with a relative path not containing any '/'.
Fixes: 035cc7a12dc ("i965: perf: reduce i965 binary size")
Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
---
src/mesa/drivers/dri/i965/brw_oa.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_oa.py
b/src/mesa/drivers/dri/i965/brw_oa.py
index 522311639bb..908c1ae9a11 100644
--- a/src/mesa/drivers/dri/i965/brw_oa.py
+++ b/src/mesa/drivers/dri/i965/brw_oa.py
@@ -632,7 +632,10 @@ def main():
"""))
- c("#include \"" + os.path.basename(args.header) + "\"")
+ basename_header = args.header
+ if "/" in arg.header:
+ basename_header = os.path.basename(args.header)
+ c("#include \"{0}\"".format(basename_header))
Arg scrap that, I didn't realized what the actual problem was...
c(textwrap.dedent("""\
#include "brw_context.h"
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev