On 1/4/22 23:55, ISHIKAWA,chiaki wrote: > I need a help. > > I create patches for TB and test locally under Debian GNU/Linux. > I use M-C/C-C tree for local TB build and testing. > > Background: I have to modify M-C portion of the code although I am > interested in patching C-C TB code. > The reason is that I apply rather strict compiler warning/error > options, and I apply then to ALL the directories including M-C tree. > (It is not entirely clear how I can change the per directory setting > of compiler options. I basically override the default specification by > passing compiler option flags to the CC and CXX commands.)
I'm no expert, but I believe you can apply compiler flags to an entire subtree from the top directory's moz.build file. https://firefox-source-docs.mozilla.org/build/buildsystem/mozbuild-files.html#reading-and-traversing-moz-build-files For example, I have this in js/src/moz.build: CXXFLAGS += ["-fstandalone-debug"] and it apples to everything under js/src/**, including subdirectories with their own moz.build files. -- You received this message because you are subscribed to the Google Groups "[email protected]" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/68e2e013-9da4-c926-f380-555e1f090d91%40mozilla.com.
