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

NEW
Unassigned

Status

3 years ago
7 months ago

People

(Reporter: Nika, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
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?
(Reporter)

Comment 2

3 years ago
(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.
(Reporter)

Updated

3 years ago
Blocks: 1232038

Updated

7 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.