This is an archive of the discontinued LLVM Phabricator instance.

Respect cmake link flags when compiling test files
AbandonedPublic

Authored by fjricci on Mar 20 2017, 11:13 AM.

Details

Summary

Makes sure that calls to try_compile run with user-supplied
additional linker flags

Event Timeline

fjricci created this revision.Mar 20 2017, 11:13 AM
fjricci edited the summary of this revision. (Show Details)Mar 20 2017, 11:14 AM
fjricci updated this revision to Diff 92365.Mar 20 2017, 11:14 AM

Fix commit message

beanz edited edge metadata.Mar 20 2017, 2:10 PM

This patch looks fine to me, however I'd like to see the resolution on D31098 before landing this. If we change the CMake policy CMP0056 to NEW, I think that will automatically address this issue resulting in us not needing this patch.

fjricci abandoned this revision.Mar 20 2017, 2:34 PM

Yep, that patch does appear to fix my issue in its current form. I'll abandon this, with the assumption that will go in.