-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 ml path for Windows clang-cl cc toolchain #23337
Conversation
Assembly files are not valid inputs for `clang-cl.exe`; the MSVC `ml64.exe` must be used instead.
Do you mind adding a simple test for this at https://cs.opensource.google/bazel/bazel/+/master:src/test/py/bazel/bazel_windows_cpp_test.py;l=766? |
Sure, I added a |
I don't think it's covering what we want to test, the clang-cl test cases didn't use the default project, see https://cs.opensource.google/bazel/bazel/+/master:src/test/py/bazel/bazel_windows_cpp_test.py;l=790-794 I also manually ran this test on a Windows machine, it passed without the windows_cc_configure.bzl change. |
4968e38
to
db91b9b
Compare
Sorry, my mistake. I've moved the functionality to the proper test now. I'm still not able to get the tests to run locally (looks like the test harness isn't finding my MSVC installation for some reason). However, I was able to manually create a test project with the same file contents and confirmed that it failed with 7.3.1 but passed with my changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@bazel-io fork 7.4.0 |
Assembly files are not valid inputs for `clang-cl.exe`; the MSVC `ml64.exe` must be used instead. Fixes bazelbuild#23128. Closes bazelbuild#23337. PiperOrigin-RevId: 666406544 Change-Id: Ia7a5fc4702f08a5754145ca286c079d1a4f0e204
Assembly files are not valid inputs for `clang-cl.exe`; the MSVC `ml64.exe` must be used instead. Fixes bazelbuild#23128. Closes bazelbuild#23337. PiperOrigin-RevId: 666406544 Change-Id: Ia7a5fc4702f08a5754145ca286c079d1a4f0e204
Assembly files are not valid inputs for `clang-cl.exe`; the MSVC `ml64.exe` must be used instead. Fixes #23128. Closes #23337. PiperOrigin-RevId: 666406544 Change-Id: Ia7a5fc4702f08a5754145ca286c079d1a4f0e204 Commit e5a083d --------- Co-authored-by: Michael Siegrist <[email protected]>
This essentially reverts bazelbuild/bazel#23337 now that the toolchain configuration has been moved here. clang-cl does support assembly just like other clang variants and unlike MASM supports assembly using native AT&T syntax as with regular clang. MSVC-style assembly requires using MASM, which continues to be available in the MSVC toolchain. This has previously been discussed in bazelbuild/bazel#24152 and reverted for Bazel 7.4.1 in bazelbuild/bazel#24211. Ideally, we'd want to have some mechanism to make assembler selection configurable and support several kinds of asm syntax in the future.
Assembly files are not valid inputs for
clang-cl.exe
; the MSVCml64.exe
must be used instead.Fixes #23128.