BUG when using GYP_DEFINES+=" profiling=1 release_extra_cflags=-fno-omit-frame-pointer disable_pie=1
2014-12-10 10:26
246 查看
Hi, I find GYP's bug when dealing with GYP_DEFINES env variables override.
I was having a successfully android build, and i wanted to enable profiler support, so i followed the
http://www.chromium.org/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, its 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, 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 go on.
Now I see, there definitely is 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 has generated too many files in my VM. Oh dear.
//sent to chromium-dev@
I was having a successfully android build, and i wanted to enable profiler support, so i followed the
http://www.chromium.org/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, its 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, 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 go on.
Now I see, there definitely is 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 has generated too many files in my VM. Oh dear.
//sent to chromium-dev@
相关文章推荐
- Error "ORA-28040: No matching authentication protocol" When Using SQLNET.ALLOWED_LOGON_VERSION (Doc
- BUG: ASP Error 80070005 "Server.CreateObject Access" When You Create a Visual Basic Component
- Bug 13250244 - Shared pool leak of "KGLHD" memory when using multiple subpools (文档 ID 13250244.8)
- 运用ocropy时报numpy.dot() fails when using keyword argument "out"的错误
- Be carefull when using string operating function declarated in "string.h"
- BUG: You receive an "HTTP 500 - Internal server error" error message when you try to view an ASP page after you install Visual S
- 1202530 - Error: "HTTP Status 500"" when attempting to log on to Java InfoView using Active Directory(配置BOSSO出现的问题解决方案)
- [Frame(extraClass="XXXXXX")] 标签
- gnuplot Could not find/open font when opening font "arial", using internal non-scalable font
- C2059 Error Using extern "C" in .C Source Files
- VC++中"using namespace std"的用处
- "using namespace std"和"friend operator"
- The "Exec" task needs a command to execute,[小问题,大麻烦,vs2005的貌似BUG的设定]
- Apache 选择"only for the Current User, on 8080, when started Manually"时的服务启动方法及如何修改端口号
- ATL DLL Release"LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main"
- "Unexpected Error 0x8ffe2740 Occurred" Error Message When You Try to Start a Web Site
- Murphy's Law 译为"摩非定律"--可能是软件里面总有BUG的原因
- VS2005智能设备项目的Bug:"The OutputPath property is not set for this project..."
- PRB: "Requested Registry Access Is Not Allowed" Error Message When ASP.NET Application Tries to Write New EventSource in the Eve
- how to install NOkia SDK of Chinese Version when you meet a Error:"Could not load jvm.dll"