aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Kevin Lubick <kjlubick@google.com>2017-03-07 09:45:50 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-07 16:32:31 +0000
commit5c7780e350f44c3415ba17304dd50a21da74e051 (patch)
treed8bde28a435d48c8c83d107d72805246ed815eb7
parent47f5d8466ae3d8a403b53dd3035affbb4790da58 (diff)
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 <kjlubick@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
-rw-r--r--gn/BUILD.gn1
1 files changed, 0 insertions, 1 deletions
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" ]