This is an archive of the discontinued LLVM Phabricator instance.

[CMake] When built with LLVM, not use `-Wl,-z,defs`
ClosedPublic

Authored by ychen on Oct 24 2018, 6:44 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

ychen created this revision.Oct 24 2018, 6:44 PM
ychen edited the summary of this revision. (Show Details)Oct 24 2018, 6:47 PM
ychen added reviewers: srhines, compnerd, phosek, rnk.
compnerd accepted this revision.Oct 24 2018, 8:18 PM

Yeah, this seems right. The builtins currently have some dependencies on libm, so you won't be able to build with -z defs.

This revision is now accepted and ready to land.Oct 24 2018, 8:18 PM
phosek added inline comments.Oct 24 2018, 8:21 PM
CMakeLists.txt
378 ↗(On Diff #171031)

Would it make sense to do it unconditionally? If the flag isn't present it should be a no-op.

ychen updated this revision to Diff 171035.EditedOct 24 2018, 8:53 PM

Could you please help land it for me? I don't have access. Thank you!

This revision was automatically updated to reflect the committed changes.