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)

defect
Not set
normal

Tracking

(firefox47 affected, firefox48 fixed)

RESOLVED FIXED
mozilla48
Tracking Status
firefox47 --- affected
firefox48 --- fixed

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.
This patch wound up being pretty straightforward. I took the time to remove ASM_SUFFIX entirely while I was there.
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: nobody → ted
https://hg.mozilla.org/mozilla-central/rev/36b8d3c16c17
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
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: