Open Bug 1611968 Opened 6 years ago Updated 3 years ago

HOST_OPTIMIZE_FLAGS don't apply to clang-plugin files

Categories

(Firefox Build System :: General, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: away, Unassigned)

Details

(Keywords: in-triage)

I'm trying to change optimization flags on clang-plugin to investigate something. I noticed that changing HOST_OPTIMIZE_FLAGS doesn't affect the flags in the log. Changing MOZ_OPTIMIZE_FLAGS does affect those flags.

According to context.py this is keyed off of CROSS_COMPILE. But I'm not really doing a cross compile, I'm compiling for Windows from Windows, but we still think of clang-plugin as a "host" thing.

Keywords: in-triage
Priority: -- → P3

As far as I can tell this was the logic in config.mk before, as well. The setup is pretty weird, but you should be able to set HOST_COMPILE_FLAGS['HOST_OPTIMIZE'] in build/clang-plugin/moz.build to the desired value to achieve this.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.