124
edits
Line 117: | Line 117: | ||
There's two answers to this question. | There's two answers to this question. | ||
'''Locally''': | '''Locally''': Inside your mozconfig, you can set the following like <tt>export FOO="bar"</tt> | ||
* CC - C compiler used to compile firefox | |||
* CFLAGS | |||
* CPPFLAGS | |||
* HOST_CC - used to compile utilities that will run on the build machine | |||
* HOST_CFLAGS | |||
* CXX / HOST_CXX - C++ compiler | |||
* CXXFLAGS / HOST_CXXFLAGS | |||
* LLVM_CONFIG | |||
* RUSTC / CARGO / RUSTDOC / RUSTFMT / CBINDGEN | |||
Less commonly you may need to set | |||
* AR / AS / RANLIB / STRIP / OTOOL / OBJCOPY / LIPO / NASM / NODEJS / MAKECAB | |||
* BINDGEN_CFLAGS - for rust bindgen | |||
You may also need to set: | |||
* <tt>ac_add_options --with-toolchain-prefix=foo</tt> - used for a cross compile. [https://searchfox.org/mozilla-central/rev/3300072e993ae05d50d5c63d815260367eaf9179/browser/config/mozconfigs/win32/mingwclang#32 example] | |||
* mk_add_options "export PATH=directory:$PATH" - to add more PATHs | |||
* LD_LIBRARY_PATH - [https://searchfox.org/mozilla-central/rev/3300072e993ae05d50d5c63d815260367eaf9179/browser/config/mozconfigs/win32/mingwclang#62-63 as shown here] | |||
'''In Try''': (to be answered) | '''In Try''': (to be answered) | ||
You may also need to set | |||
<tt>ac_add_options --disable-warnings-as-errors</tt> - if your compiler produces new warnings, we may treat them as errors and abort. This will stop that. | |||
=== How do I add logging to my code to figure out what is going on? === | === How do I add logging to my code to figure out what is going on? === |
edits