This is an archive of the discontinued LLVM Phabricator instance.

[Support][test] Unconditionally use setenv macro when compiling on Windows
ClosedPublic

Authored by zero9178 on Mar 9 2021, 10:49 AM.

Details

Summary

This test currently fails to compile when using a MinGW toolchain as setenv is not defined. This function is a POSIX function Windows does not implement.

This patch enables the setenv macro used in the unit test for all of Windows, making the test compile and run successfully.

Diff Detail

Event Timeline

zero9178 requested review of this revision.Mar 9 2021, 10:49 AM
zero9178 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMar 9 2021, 10:49 AM
This revision is now accepted and ready to land.Mar 9 2021, 10:51 AM
This revision was landed with ongoing or failed builds.Mar 9 2021, 10:53 AM
This revision was automatically updated to reflect the committed changes.