Closed
Bug 1248016
Opened 8 years ago
Closed 8 years ago
Make ASFILES rules work with .s or .asm files
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(firefox47 affected, firefox48 fixed)
RESOLVED
FIXED
mozilla48
People
(Reporter: ted, Assigned: ted)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Currently our rules to compile ASFILES only work for ASM_SUFFIX, which varies by platform: https://dxr.mozilla.org/mozilla-central/rev/576a6dcde5b68c2ea45324ed5ce1dabb7d833d09/config/rules.mk#239 A bunch of Makefiles (mostly those using yasm) wind up having to override this in Makefiles to make things work: https://dxr.mozilla.org/mozilla-central/search?q=ASM_SUFFIX We should just support .s or .asm for ASFILES like we do .cc/.cpp for CPPSRCS.
Assignee | ||
Updated•8 years ago
|
Blocks: nomakefiles
Assignee | ||
Comment 1•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/37909/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/37909/
Attachment #8726293 -
Flags: review?(mshal)
Assignee | ||
Comment 2•8 years ago
|
||
This patch wound up being pretty straightforward. I took the time to remove ASM_SUFFIX entirely while I was there.
Comment 3•8 years ago
|
||
Comment on attachment 8726293 [details] MozReview Request: bug 1248016 - make ASFILES rules work with .s/.asm, get rid of ASM_SUFFIX. r?mshal https://reviewboard.mozilla.org/r/37909/#review34569 Just some optional nits. Looks good! ::: media/libvpx/moz.build:37 (Diff revision 1) > - "!%s.%s" % (f, CONFIG['VPX_ASM_SUFFIX']) > + "!%s.s" % f Now that this line is shorter, it might be a little easier to read if you put this in one line: "!%s.s" % f if f.endswith('.asm') else f for f in arm_asm_files ::: media/libvpx/moz.build:39 (Diff revision 1) > for f in sorted(arm_asm_files) I don't think you need sorted here since the result is sorted anyway, which will also make the line a little shorter to fit in 80 characters.
Attachment #8726293 -
Flags: review?(mshal) → review+
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → ted
Assignee | ||
Comment 4•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/36b8d3c16c1776711703f1498902402b0bacf828 bug 1248016 - make ASFILES rules work with .s/.asm, get rid of ASM_SUFFIX. r=mshal
Comment 5•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/36b8d3c16c17
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•