Skip to content

Conversation

georgthegreat
Copy link
Contributor

We compile our monorepo with /D_MBCS and flang-rt compilation breaks as it explicitly uses wchar_t (i. e. not TCHAR).

Use STARTUPINFOW / CreateProcessW method explicitly to make the code work disregarding global settings.

Copy link
Contributor

@eugeneepshteyn eugeneepshteyn left a comment

Choose a reason for hiding this comment

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

Yep, makes sense, thanks!

@eugeneepshteyn
Copy link
Contributor

@georgthegreat , are you ready for this to be merged?

@georgthegreat
Copy link
Contributor Author

georgthegreat commented Sep 22, 2025

I am fine with this, let's do it.

@georgthegreat
Copy link
Contributor Author

We still have not enabled flang in our monorepo, but this should not take long

@eugeneepshteyn
Copy link
Contributor

I'll merge it, since it's a good fix and it'll be ready for you once you enable the flag.

@eugeneepshteyn eugeneepshteyn merged commit 218898e into llvm:main Sep 22, 2025
10 checks passed
@georgthegreat
Copy link
Contributor Author

Thanks!

@georgthegreat georgthegreat deleted the patch-1 branch September 22, 2025 14:29
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.

2 participants