Closed Bug 1399878 Opened 7 years ago Closed 7 years ago

Use LOCAL_INCLUDES instead of CFLAGS in some media moz.build files

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox57 fixed)

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: ted, Assigned: ted)

References

Details

Attachments

(1 file)

I'm not sure why these moz.build files are written this way, but a few moz.build files under media/ set include paths by doing things like `CFLAGS += [ '-I%s/media/libaom/config/win/x64/' % TOPSRCDIR ]`. These are easily translated to `LOCAL_INCLUDES`, which is more sensible and doesn't break my WSL build with absolute Posix paths being passed to cl.exe.
Comment on attachment 8908151 [details]
bug 1399878 - Use LOCAL_INCLUDES instead of CFLAGS in some media moz.build files.

https://reviewboard.mozilla.org/r/179834/#review185572

Weird.

A potential follow-up would be to lint the value of CFLAGS and cousins and reject anti-patterns like this.
Attachment #8908151 - Flags: review?(gps) → review+
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/305e742634e5
Use LOCAL_INCLUDES instead of CFLAGS in some media moz.build files. r=gps
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: