This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Make simple source used for CMake checks a C file
ClosedPublic

Authored by phosek on Apr 26 2018, 4:28 PM.

Details

Summary

The source being compiled is plain C, but using .cc extension forces it
to be compiled as C++ which requires a working C++ compiler including
C++ library which may not be the case when we're building compiler-rt
together with libcxx as part of runtimes build.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.Apr 26 2018, 4:28 PM
Herald added subscribers: Restricted Project, llvm-commits, mgorny. · View Herald TranscriptApr 26 2018, 4:28 PM
vitalybuka accepted this revision.Apr 26 2018, 4:31 PM
This revision is now accepted and ready to land.Apr 26 2018, 4:31 PM
This revision was automatically updated to reflect the committed changes.