Commit 7f232572 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: I1e894449ef31dabe3810d9a3f2fabbf6f2e52230
parent ec89dba0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment