Skip to content

Commit

Permalink
buildtools: fix all drivers disabled on Windows
Browse files Browse the repository at this point in the history
[ upstream commit 74299cc ]

buildtools/list-dir-globs.py printed paths with OS directory separator,
which is "/" on Unices and "\" on Windows, while Meson code always
expected "/". This resulted in all drivers being disabled on Windows.

Replace "\" with "/" in script output. Forward slash is a valid,
although non-default, separator on Windows, so no paths can be broken
by this substitution.

Fixes: ab9407c ("build: allow using wildcards to disable drivers")

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
  • Loading branch information
PlushBeaver authored and steevenlee committed May 8, 2021
1 parent acbb986 commit 3d8025a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildtools/list-dir-globs.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
for path in sys.argv[1].split(','):
for p in iglob(os.path.join(root, path)):
if os.path.isdir(p):
print(os.path.relpath(p))
print(os.path.relpath(p).replace('\\', '/'))

0 comments on commit 3d8025a

Please sign in to comment.