Page MenuHomeFreeBSD

crossbuild: Allow bootstrapping libmd on MacOS
ClosedPublic

Authored by arichardson on Feb 7 2018, 5:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 1, 3:11 PM
Unknown Object (File)
Jun 1 2024, 11:48 PM
Unknown Object (File)
Mar 22 2024, 8:33 PM
Unknown Object (File)
Mar 22 2024, 8:33 PM
Unknown Object (File)
Mar 22 2024, 8:33 PM
Unknown Object (File)
Mar 22 2024, 8:33 PM
Unknown Object (File)
Mar 9 2024, 1:18 PM
Unknown Object (File)
Feb 15 2024, 7:13 AM
Subscribers
None

Details

Summary

The assembly files use directives that only work for ELF targets so skip
them when bootstrapping on MacOS.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 14850
Build 14964: arc lint + arc unit

Event Timeline

lib/libmd/Makefile
97

I have heartburn about burring 'If I'm building on OS <blah>' deep into the build.

lib/libmd/Makefile
97

I agree this is far from ideal but we need libmd for bootstrapping and I have no idea where else to add this check.

lib/libmd/Makefile
97

Why not .if defined(BOOTSTRAPPING) then? forget about the .MAKE.OS. It's just an optimization anyway that has no material speedup at all and would cover all bases in a more general way. The comments could then change to "Don't build ASM sources when bootstrapping to avoid toolchain dependencies" or something equally generic.

always disable asm sources when bootstrapping

Ding! We're ready to roll on this one.

This revision is now accepted and ready to land.Feb 12 2018, 12:20 AM
This revision was automatically updated to reflect the committed changes.