From 5c7780e350f44c3415ba17304dd50a21da74e051 Mon Sep 17 00:00:00 2001 From: Kevin Lubick Date: Tue, 7 Mar 2017 09:45:50 -0500 Subject: [PATCH] Be able to compile nanobench for Chromecast Get toolchain from https://goto.google.com/ncoqy and put in $CAST_TOOLCHAIN gn gen out/chromecast --args='cc="$CAST_TOOLCHAIN/armv7a/bin/armv7a-cros-linux-gnueabi-gcc" cxx="$CAST_TOOLCHAIN/armv7a/bin/armv7a-cros-linux-gnueabi-g++" ar="$CAST_TOOLCHAIN/armv7a/bin/armv7a-cros-linux-gnueabi-ar" is_official_build=true skia_use_fontconfig=false extra_ldflags=["-static-libstdc++","-static-libgcc"] target_cpu="arm" skia_enable_gpu=false skia_use_system_freetype2=false' ninja -C out/chromecast nanobench We go with is_official_build to minimize binary size, as the chromecast does not have much onboard storage. They do not package libstdc++ so we add the link options: -static-libstdc++ -static-libgcc -momit-leaf-frame-pointer is not supported, so we delete it, as it is not important. BUG=skia: Change-Id: I7b0882ab5d6109f07345a2d59df265efef9b9554 Reviewed-on: https://skia-review.googlesource.com/9338 Commit-Queue: Kevin Lubick Reviewed-by: Mike Klein --- gn/BUILD.gn | 1 - 1 file changed, 1 deletion(-) diff --git a/gn/BUILD.gn b/gn/BUILD.gn index 9c1ee9e73a..5ccc729c3e 100644 --- a/gn/BUILD.gn +++ b/gn/BUILD.gn @@ -403,7 +403,6 @@ config("release") { "-O3", "-fdata-sections", "-ffunction-sections", - "-momit-leaf-frame-pointer", ] if (is_mac || is_ios) { ldflags = [ "-dead_strip" ] -- 2.34.1