This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] Set builtins and cxx library for target arch test
AcceptedPublic

Authored by phosek on Mar 6 2020, 2:37 PM.

Details

Reviewers
smeenai
beanz
Summary

When testing whether target arch is supported, take the selected
builtins and cxx library into consideration otherwise the test may
fail even when it shouldn't.

Diff Detail

Event Timeline

phosek created this revision.Mar 6 2020, 2:37 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 6 2020, 2:37 PM
Herald added subscribers: llvm-commits, Restricted Project, mgorny, dberris. · View Herald Transcript
smeenai accepted this revision.Mar 6 2020, 4:01 PM

LGTM barring the question about the duplication.

compiler-rt/cmake/Modules/CompilerRTUtils.cmake
143

Hmm, I guess try_compile doesn't honor CMAKE_REQUIRED_LIBRARIES? That's surprising.

145

Was it intentional to duplicate this line?

This revision is now accepted and ready to land.Mar 6 2020, 4:01 PM