Commit 1bb7be30 authored by WenHan Gu's avatar WenHan Gu
Browse files

Shrink binary sizes when cross-compiling.

In cross-compiling mode:
* Currently, le32-none-ndk-translate don't need libLLVMWrap.
* Only build llc, le32-none-ndk-translate.
* Remove unnecessary libraries when building libLLVM.so.
* Don't build unittests since our libLLVM only has partial components now.
* Use -Os instead of -O3.
* Use -fdata-sections, -ffunction-sections, -fvisibility-inlines-hidden
  and -Wl,--gc-sections.

After this CL, we can reduce code size about 3MB on library.

Cherry-picked from release_32 branch.

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