Closed Bug 664362 Opened 13 years ago Closed 11 years ago

Host objects are not rebuilt when a header changes

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla27

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

The build system doesn't keep track of dependencies for host objects, and if a changeset modifies a header file that some source file built as host_*.o uses, nothing is rebuilt, which can lead to some interesting problems.
Blocks: 661800
The more I'm thinking about it, the more it's an impossible mess, considering the spread of platform specific hacks all over the place, and considering cross-compilation complicates things. I'll just go the easy way and fix my problem locally, while leaving this bug open because it still exists.
No longer blocks: 661800
Blocks: 928204
This is kind of ugly, because it assumes the host and target toolchains use the same flags, but in practice, that works because we don't support things like (host=msvc, target=gcc). The most disparate mix we support is (host=clang, target=gcc), and in that case the flags *are* the same. Note that _DEPEND_CFLAGS is actually empty for msvc, so this doesn't change much for compilation on windows, but cl.py was already outputing the depfiles anyways for object files.

https://tbpl.mozilla.org/?tree=Try&rev=9cd92f4c1f17

I'd say it's about time to have proper dependencies for host object/programs/libraries.
Attachment #818909 - Flags: review?(gps)
Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Comment on attachment 818909 [details] [diff] [review]
Generate depfiles for host objects/programs/libraries

Review of attachment 818909 [details] [diff] [review]:
-----------------------------------------------------------------

::: other-licenses/bsdiff/Makefile.in
@@ -39,5 @@
>  LOCAL_INCLUDES += -I$(topsrcdir)/toolkit/mozapps/update/updater
>  
>  include $(topsrcdir)/config/rules.mk
>  
> -HOST_CXXFLAGS += $(MOZ_BZ2_CFLAGS)</textarea>

wat
Attachment #818909 - Flags: review?(gps) → review+
https://hg.mozilla.org/mozilla-central/rev/79d67674300e
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
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: