Skip to content
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

Fix GetEnvironmentVariable encoding #726

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

kswiecicki
Copy link
Contributor

@kswiecicki kswiecicki commented Jul 18, 2023

Due to possibly harsher compiler checks, the current usage of GetEnvironmentVariable causes a conversion error in the Unified Runtime L0 adapter implementation on the https://github.com/intel/llvm/ repo.
CI: https://github.com/intel/llvm/actions/runs/5577820648/jobs/10191589770?pr=10269

This fixes the following error: error C2664: 'DWORD GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD)': cannot convert argument 1 from 'const char *' to 'LPCWSTR'.

Copy link
Contributor

@pbalcer pbalcer left a comment

Choose a reason for hiding this comment

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

We should have the same checks in UR.

@igchor igchor merged commit 0ab0aa3 into oneapi-src:main Jul 18, 2023
20 checks passed
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