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)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla27
People
(Reporter: glandium, Assigned: glandium)
References
Details
Attachments
(1 file)
18.60 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•13 years ago
|
||
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.
Assignee | ||
Comment 2•11 years ago
|
||
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 | ||
Updated•11 years ago
|
Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Comment 3•11 years ago
|
||
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+
Assignee | ||
Comment 4•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•