This is an archive of the discontinued LLVM Phabricator instance.

[bazel] fixes for windows build
AbandonedPublic

Authored by ychen on Oct 22 2021, 3:47 PM.

Details

Reviewers
GMNGeoffrey
Summary

Giving Bazel a try on Win10 by following the README. It needs these fixes
to build through. Think that I should sent it out in case it is useful.

Diff Detail

Event Timeline

ychen requested review of this revision.Oct 22 2021, 3:47 PM
ychen created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 22 2021, 3:47 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Thanks for upstreaming your fixes :-) It looks like this has some overlap with https://reviews.llvm.org/D112399 and https://reviews.llvm.org/D111930. Let's let those land and then see what's still necessary here

utils/bazel/llvm-project-overlay/clang/BUILD.bazel
1336

@chandlerc thoughts on this?

1805

I don't understand why we need this at all, actually :-/ Let me investigate

utils/bazel/llvm-project-overlay/clang/include/clang/Config/config.h
78

FYI, https://reviews.llvm.org/D112399 is also fixing this

utils/bazel/llvm-project-overlay/llvm/config.bzl
63

Just commenting these out isn't right. I believe you're likely hitting the same issue fixed in https://reviews.llvm.org/D112399 with macro redefines

ychen added inline comments.Oct 25 2021, 2:32 PM
utils/bazel/llvm-project-overlay/llvm/config.bzl
63

Thanks for the link. Yeah, I wasn't sure about this part.

If you'd like to rebase this and see what's still outstanding, I can take another look :-)

ychen added a comment.Feb 2 2022, 11:54 PM

If you'd like to rebase this and see what's still outstanding, I can take another look :-)

Thanks for getting around to this. I rebased the patch and reran the build. It seems the newly added libc build causes many errors. It is vague about its windows support (https://releases.llvm.org/12.0.0/docs/Proposals/LLVMLibC.html#platform-support). Maybe it should be excluded by default for windows?

ychen abandoned this revision.Sep 23 2022, 5:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 23 2022, 5:28 PM