Commit ede6ce63 authored by zhen.jiang's avatar zhen.jiang

-ffunction-sections + --gc-sections

parent c7bd18b9
......@@ -819,7 +819,7 @@ crtFilesLocation.ohos_arm64 = usr/lib/aarch64-linux-ohos
targetTriple.ohos_arm64 = aarch64-linux-ohos
linkerNoDebugFlags.ohos_arm64 = -S
linkerDynamicFlags.ohos_arm64 = -shared
linkerDynamicFlags.ohos_arm64 = -shared --gc-sections
linkerOptimizationFlags.ohos_arm64 = --gc-sections
linkerKonanFlags.ohos_arm64 = -Bstatic -Bdynamic -ldl -lm -lpthread -lc++ -lc++abi \
--defsym __cxa_demangle=Konan_cxa_demangle -lc -lqos -lhitrace_ndk.z -lhilog_ndk.z
......@@ -830,7 +830,7 @@ targetCpuFeatures.ohos_arm64 = +aes,+fp,+neon,+sha2,+sve,+asimd
clangFlags.ohos_arm64 = -cc1 -emit-obj -x ir
clangNooptFlags.ohos_arm64 = -O1
clangOptFlags.ohos_arm64 = -O3 -ffunction-sections
clangDebugFlags.ohos_arm64 = -O0
clangDebugFlags.ohos_arm64 = -O0 -ffunction-sections -fdata-sections
dynamicLibraryRelocationMode.ohos_arm64 = pic
staticLibraryRelocationMode.ohos_arm64 = pic
# endregion
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment