Closed Bug 1235676 Opened 8 years ago Closed 8 years ago

Add a topobjdir variable to all Makefiles

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox46 fixed)

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(6 files)

We have, all over the tree, several places that want absolute paths to the object directory, and most rely on things like $(abspath $(DIST)) or $(abspath $(DEPTH)), sometimes relying on even more complex things for windows paths. The sad part is that we do have the absolute path to the top object directory in the backend code (and in a proper form for windows, at that), we're just not exposing it to make.
This replaces multiple local definitions of ABS_DIST.
Attachment #8702758 - Flags: review?(mshal)
Attachment #8702759 - Flags: review?(mshal)
(In reply to Mike Hommey [:glandium] (VAC: 31 Dec - 11 Jan) from comment #5)
> Created attachment 8702762 [details] [diff] [review]
> Replace $(abspath $(DEPTH)) with $(topobjdir)

Note there's a remaining one in xulrunner/installer/windows/Makefile.in, but it's removed in bug 1235672
This is to be folded in the first patch.
Attachment #8702796 - Flags: review?(mshal)
Attachment #8702796 - Attachment is patch: true
Attachment #8702796 - Attachment mime type: text/x-patch → text/plain
Blocks: 1235733
Blocks: 1235866
Comment on attachment 8702757 [details] [diff] [review]
Add a topobjdir variable to all Makefiles

Everything looks good to me. Did you test with an OSX universal build? That's the only place I can imagine something biting us.
Attachment #8702757 - Flags: review?(mshal) → review+
Attachment #8702758 - Flags: review?(mshal) → review+
Attachment #8702759 - Flags: review?(mshal) → review+
Attachment #8702760 - Flags: review?(mshal) → review+
Attachment #8702762 - Flags: review?(mshal) → review+
Comment on attachment 8702796 [details] [diff] [review]
test_recursivemake.py update for topobjdir

This should probably be folded in with the first patch.
Attachment #8702796 - Flags: review?(mshal) → review+
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: