Closed
Bug 834024
Opened 12 years ago
Closed 12 years ago
Add -include $(DEPTH)/mozilla-config.h to ASFLAGS
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla21
People
(Reporter: jrmuizel, Assigned: jrmuizel)
References
Details
Attachments
(1 file)
633 bytes,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
In order to be able use stuff mozilla-config.h in files included by .S files we need this. I specifically ran into this in pixman with the neon files including pixman-private.h which was customized on MOZ_GFX_OPTIMIZE_MOBILE.
This has some weird quoting because in the first part of the string it wants to expand $ variables and in the second it doesn't.
Attachment #705597 -
Flags: review?(ted)
Comment 1•12 years ago
|
||
Comment on attachment 705597 [details] [diff] [review]
Add -include $(DEPTH)/mozilla-config.h to ASFLAGS
Review of attachment 705597 [details] [diff] [review]:
-----------------------------------------------------------------
I think it would be better to use $_DEFINES_CFLAGS and to do that around where we set COMPILE_CFLAGS.
Assignee | ||
Comment 2•12 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #1)
> Comment on attachment 705597 [details] [diff] [review]
> Add -include $(DEPTH)/mozilla-config.h to ASFLAGS
>
> Review of attachment 705597 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> I think it would be better to use $_DEFINES_CFLAGS and to do that around
> where we set COMPILE_CFLAGS.
In this case we only want to add it to ASFLAGS when we're using gcc as the assembler.
Comment 3•12 years ago
|
||
Comment on attachment 705597 [details] [diff] [review]
Add -include $(DEPTH)/mozilla-config.h to ASFLAGS
Review of attachment 705597 [details] [diff] [review]:
-----------------------------------------------------------------
I agree that we could do this in a more consistent manner, but this patch is so simple it seems silly to complicate it just for that goal. I have just one request.
::: configure.in
@@ +1420,4 @@
> WARNINGS_AS_ERRORS='-Werror -Wno-error=uninitialized'
> DSO_CFLAGS=''
> DSO_PIC_CFLAGS='-fPIC'
> + ASFLAGS="$ASFLAGS -fPIC "'-include $(DEPTH)/mozilla-config.h'
Can you shift this down a little bit to at least reuse $_DEFINES_CFLAGS where it's set?
Attachment #705597 -
Flags: review?(ted) → review+
Updated•12 years ago
|
Assignee: nobody → jmuizelaar
Comment 4•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
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
•