HomePhabricator

Fix -gz=zlib options for linker

Authored by yaxunl on Sep 8 2020, 10:45 AM.

Description

Fix -gz=zlib options for linker

gcc translates -gz=zlib to --compress-debug-options=zlib for both assembler and linker
but clang only does this for assembler.

The linker needs --compress-debug-options=zlib option to compress the debug sections
in the generated executable or shared library.

Due to this bug, -gz=zlib has no effect on the generated executable or shared library.

This patch fixes that.

Differential Revision: https://reviews.llvm.org/D87321

Details

Committed
yaxunlSep 11 2020, 2:12 PM
Differential Revision
D87321: Fix -gz=zlib options for linker
Parents
rG7dcd0042e8b8: Re-apply "[ORC] Make MaterializationResponsibility immovable..." with fixes.
Branches
Unknown
Tags
Unknown