Commit 6230037c authored by Ray Donnelly's avatar Ray Donnelly
Browse files

Fixes for "Shrink binary sizes when cross-compiling."

.. LLVM_CROSS_COMPILING isn't the appropriate test before enabling
-fdata-sections, -ffunction-sections, -fvisibility-inlines-hidden or
-Wl,--gc-sections. The first three should be enabled if the compiler
supports those flags and the last one if the linker supports
--gc-sections.

Setting these flags when LLVM_CROSS_COMPILING caused cross-builds to
fail with my Darwin-targeting toolchain.

Change-Id: Iedcd851641d99a5056a893cad539f48896808768
parent d66307cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment