mozjs
mozjs copied to clipboard
Switched Bindgen to Use `BINDGEN_CXXFLAGS` Environment Variable
Resolves #435, using the second approach mentioned.
Will require a change in servo at the following location to env["CXXFLAGS"] = env["BINDGEN_CXXFLAGS"] = ' '.join([
.
https://github.com/servo/servo/blob/bbc35b682f0fb926364e5800d20f77bba944a020/python/servo/command_base.py#L690
There is BINDGEN_EXTRA_CLANG_ARGS
, could we use it instead of introducing new variable?
The issue is CXXFLAGS
being passed to both bindgen and cc/makefile.cargo, not bindgen itself.