tools: Fixes for intrinsic-gen on windows

Fix slash-related issues.

Change-Id: I618649578746450df7cb2dcd372c5a778eb719ba
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56776
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
Ben Clayton
2021-07-05 16:43:17 +00:00
committed by Tint LUCI CQ
parent f83e406b37
commit 892aaf377f
4 changed files with 47 additions and 27 deletions

View File

@@ -192,6 +192,7 @@ func (c Config) shouldExamine(root, absPath string) bool {
if err != nil {
return false
}
relPath = filepath.ToSlash(relPath) // Canonicalize
res := false
for _, rule := range c.Paths {