Skip to content

Conversation

@dcharkes
Copy link
Collaborator

@dcharkes dcharkes commented Apr 28, 2023

When using MSVCs cl.exe an accompanying script sets the right environment variables, such as INCLUDE.
In visual studio this is vcvarsall.bat, vcvars64.bat or a similar script, which can be discovered in a relative path from cl.exe.

However, on the Dart CI bots, we use a custom script which serves the same purpose.
See https://chromium.googlesource.com/chromium/tools/depot_tools/+/master/win_toolchain/.

We might as well make the script configurable in general, as maybe more compilers require setting the right environment variables. (Side note: on the Dart CI we also use a clang.exe with this same environment variables script so that the clang.exe can also find the Windows implementations for printf etc.)

Dart CL: https://dart-review.googlesource.com/c/sdk/+/298580

@coveralls
Copy link

coveralls commented Apr 28, 2023

Coverage Status

coverage: 99.841% (-0.08%) from 99.919%
when pulling e079515 on windows-dart-ci
into 49be7f1 on main.

@dcharkes dcharkes marked this pull request as ready for review April 28, 2023 11:10
@dcharkes dcharkes requested a review from HosseinYousefi April 28, 2023 11:11
@dcharkes dcharkes requested a review from HosseinYousefi April 28, 2023 11:30
Copy link
Member

@HosseinYousefi HosseinYousefi left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @dcharkes 🚀

@dcharkes dcharkes merged commit 5d5db9e into main Apr 28, 2023
@dcharkes dcharkes deleted the windows-dart-ci branch April 28, 2023 11:38
HosseinYousefi pushed a commit that referenced this pull request Nov 16, 2023
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.

4 participants