This is an archive of the discontinued LLVM Phabricator instance.

[cmake] Remove unnecessary header include in atomics check
ClosedPublic

Authored by smeenai on Dec 6 2017, 10:28 AM.

Details

Summary

The header include was required to work around PR19898, as noted in that
comment. That PR has since been marked resolved fixed, and the
configuration check passes without the header inclusion both when
compiling on Windows with cl and when cross-compiling on Linux using
clang-cl.

I noticed this because the inclusion was cased incorrectly (Intrin.h
instead of intrin.h), which when cross-compiling on a case sensitive
file system would cause the intrin.h from the Windows SDK to be included
(which LLVM can't handle) instead of the one from clang's resource
directory, making the check fail. This is the same issue as r309980.
Correcting the case of the inclusion makes the check pass when cross
compiling, but it seems better to get rid of the inclusion entirely,
since it appears to be unnecessary now.

Diff Detail

Repository
rL LLVM

Event Timeline

smeenai created this revision.Dec 6 2017, 10:28 AM
zturner accepted this revision.Dec 6 2017, 10:28 AM
This revision is now accepted and ready to land.Dec 6 2017, 10:28 AM
This revision was automatically updated to reflect the committed changes.