Page MenuHomeFreeBSD

Don't use libc++ when cross-building for gcc arches
ClosedPublic

Authored by dim on Jul 28 2017, 11:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 24, 3:55 PM
Unknown Object (File)
Oct 9 2024, 4:46 AM
Unknown Object (File)
Oct 5 2024, 4:05 AM
Unknown Object (File)
Oct 4 2024, 11:58 PM
Unknown Object (File)
Oct 2 2024, 10:43 PM
Unknown Object (File)
Oct 2 2024, 8:12 AM
Unknown Object (File)
Oct 2 2024, 1:19 AM
Unknown Object (File)
Oct 1 2024, 9:51 PM
Subscribers

Details

Summary

Since we imported clang 5.0.0, the version check in Makefile.inc1 which
checks whether to use libc++ fires even when the compiler for the target
architecture is gcc 4.2.1. This is because only X_COMPILER_VERSION is
checked. Also check X_COMPILER_TYPE, so it will only use libc++ when an
external gcc toolchain is used.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I confirmed that this mips.mips.buildworld works; the other MIPS builds, PowerPC, and Sparc64 are in progress.

make tinderbox JFLAG=-j16 TARGETS="mips powerpc sparc64" UNIVERSE_TARGET=buildworld

Ran to completion and passed.

This revision is now accepted and ready to land.Jul 29 2017, 12:47 AM
emaste added inline comments.
Makefile.inc1
627 ↗(On Diff #31328)

This XXX comment can probably go now.

This revision was automatically updated to reflect the committed changes.

The same logic is in Makefile.libcompat and may need to be handled as well.