Open Bug 1231980 Opened 8 years ago Updated 2 years ago

Add option to --enable-clang-plugin to add extra flags to the compiler invocation

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: nika, Unassigned)

References

Details

The idea would be to enable things such as `-DSOME_ANALYSIS` to toggle analyses, `-g -O0` for testing etc.
Why not just set CFLAGS/CXXFLAGS with these flags to your mozconfig?
(In reply to Mike Hommey [:glandium] from comment #1)
> Why not just set CFLAGS/CXXFLAGS with these flags to your mozconfig?

Those properties are overridden for the clang-plugin dylib itself here: https://dxr.mozilla.org/mozilla-central/source/build/clang-plugin/Makefile.in#12

The clang plugin is built with completely different flags compared to the rest of firefox.
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.