Skip to content

[SYCL] Fix Win path handling in lit config #18135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

KseniyaTikhomirova
Copy link
Contributor

@KseniyaTikhomirova KseniyaTikhomirova commented Apr 22, 2025

Fixes consequence of 4150bdf
f'"{path}"' converts empty string to the string with quotes and length == 2 that breaks checks for not empty path. Fixes that.

Copy link
Contributor

@sarnex sarnex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops, thanks!

@sarnex sarnex merged commit 5d517ab into intel:sycl Apr 22, 2025
25 checks passed
sarnex pushed a commit that referenced this pull request Apr 28, 2025
The quote_path bug does not only affecting
Windows(#18135) but also Linux. This
patch address this problem. This bug affects all usage of `quote_path`,
notably the `level_zero_dev_kit` feature.

```
zsh$> cat 1.py
import shlex
ret = shlex.quote('')
if ret:
    print("bug!")
else:
    print("not a problem")

zsh$> python3 1.py
bug!
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants