BUG when using gyp_defines+= "Profiling=1 release_extra_cflags=-fno-omit-frame-pointer disable_pie=1

Source: Internet
Author: User

Hi, I find Gyp ' s bug when dealing with Gyp_defines env variables override.

I was had a successfully Android build, and I wanted to enable profiler support, so I followed THEHTTP://WWW.CHROMIUM.O Rg/developers/profiling-chromium-and-webkit instructions,

~/projects/chromium/src$ Gyp_defines +="Profiling=1 release_extra_cflags=-fno-omit-frame-pointer disable_pie=1" Build/gyp_chromium

(In my Chromium base dir, there is a file named Chromium.gyp_env, it contents is "{' Gyp_defines ': ' Os=android ',}", so I supposed the above config should enable profiler support.

However, I was wrong. The above command in fact triggered the Linux build and not Android. And when I entered:

~/projects/chromium/src$ ninja-c Out/release android_webview_apk

Gyp telled me it can not recognize android_webview_apk target, I just re-entered ninja-c out/release to let the compile G O on.

Now I See, there definitely are a BUG in Gyp when dealing with Gyp_defines env variables override.

I now re-build the chromium source using the following commands:

~/projects/chromium/src$ Gyp_defines +=" os=android Profiling=1 release_extra_cflags=-fno-omit-frame-pointer disable_pie=1 "Build/gyp_chromium
~/projects/chromium/src$ ninja-c Out/release android_webview_apk

But the previous wrong build had generated too many files in my VM. Oh dear.
//sent to [email protected]

BUG when using gyp_defines+= "Profiling=1 release_extra_cflags=-fno-omit-frame-pointer disable_pie=1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.