Reputation: 41
I am going to instrument Chromium. So, after adding some tracepoints, I have to add some additional flags during compilation of Chromium but I do not know where I should add them exactly! Do you have any idea how I can compile chromium with the debugging flag for chromium?
Thanks
Upvotes: 1
Views: 2640
Reputation:
To get Chromium to respect custom CXX
, CXXFLAGS
, LDFLAGS
etc. settings, whether for instrumentation or for any other flags you wish to add, override the toolchain.
Quoting from https://chromium.googlesource.com/chromium/src/+/lkgr/build/toolchain/linux/unbundle/:
Usage
Add the following to GN args:
custom_toolchain="//build/toolchain/linux/unbundle:default" host_toolchain="//build/toolchain/linux/unbundle:default"
See more docs on GN.
To cross-compile (not fully tested), add the following:
host_toolchain="//build/toolchain/linux/unbundle:host" v8_snapshot_toolchain="//build/toolchain/linux/unbundle:host"
Note: when cross-compiling for a 32-bit target, a matching 32-bit toolchain may be needed.
Upvotes: 1