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

[compiler-rt] [MSVC] Detect MSVC as a compiler-id for lit. #108255

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

barcharcraz
Copy link
Contributor

This is only for "real" msvc and is to support running sanitizer tests with "real" MSVC. Most compiler-rt tests do not yet pass with msvc, which will be addressed in future PRs for asan, sanitizer_common, and the fuzzer.

We've been using these changes to lit to run CI for the version of address sanitizer that ships with MSVC, by upstreaming them we can avoid being broken by future lit changes and allow contributors (importantly us) to run the MSVC tests on changes developed in the open.

This is only for "real" msvc and is to support running sanitizer tests with "real" MSVC
Copy link
Member

@mstorsjo mstorsjo left a comment

Choose a reason for hiding this comment

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

LGTM

This seems to fit in line with the existing checks.

@barcharcraz barcharcraz merged commit 81935c5 into llvm:main Sep 12, 2024
10 checks passed
barcharcraz added a commit that referenced this pull request Sep 24, 2024
This follows up on #108255 to
allow actually running the test suite with MSVC. Note, however, that
MSVC can't yet build compiler-rt, most tests don't yet pass with msvc,
and building and testing with different compilers is ill-supported.
Follow ups will fix the first two issues, the third is future work.

Note that `/Zi` is removed from the clang-cl command line, but lit as a
whole adds `-gcodeview`, so there should still be debug info.
augusto2112 pushed a commit to augusto2112/llvm-project that referenced this pull request Sep 26, 2024
…09706)

This follows up on llvm#108255 to
allow actually running the test suite with MSVC. Note, however, that
MSVC can't yet build compiler-rt, most tests don't yet pass with msvc,
and building and testing with different compilers is ill-supported.
Follow ups will fix the first two issues, the third is future work.

Note that `/Zi` is removed from the clang-cl command line, but lit as a
whole adds `-gcodeview`, so there should still be debug info.
xgupta pushed a commit to xgupta/llvm-project that referenced this pull request Oct 4, 2024
…09706)

This follows up on llvm#108255 to
allow actually running the test suite with MSVC. Note, however, that
MSVC can't yet build compiler-rt, most tests don't yet pass with msvc,
and building and testing with different compilers is ill-supported.
Follow ups will fix the first two issues, the third is future work.

Note that `/Zi` is removed from the clang-cl command line, but lit as a
whole adds `-gcodeview`, so there should still be debug info.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants