This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Enable -qfuncsect when building with IBM XL
ClosedPublic

Authored by hubert.reinterpretcast on Jan 7 2020, 7:24 AM.

Details

Summary

The IBM XL compiler uses -qfuncsect for -ffunction-sections.

The comment about sanitizers and -f[no-]function-sections is corrected also, as it is pertinent to this patch.

The sanitizer-related use of -fno-function-sections is associated with powerpc64le, a target for which there is an IBM XL compiler, so that use is updated in this patch to apply -qnofuncsect in case a build using the XL compiler is viable on that platform.

This patch has been verified with the XL compiler on AIX only.

Event Timeline

Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 7 2020, 7:24 AM
Herald added subscribers: Restricted Project, steven.zhang, mgorny. · View Herald Transcript
This revision is now accepted and ready to land.Jan 8 2020, 12:41 PM
This revision was automatically updated to reflect the committed changes.