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)
Jan 13 2024, 3:49 AM
Unknown Object (File)
Jan 7 2024, 6:39 PM
Unknown Object (File)
Jan 3 2024, 3:13 AM
Unknown Object (File)
Dec 20 2023, 5:12 AM
Unknown Object (File)
Nov 7 2023, 9:12 AM
Unknown Object (File)
Oct 6 2023, 8:06 AM
Unknown Object (File)
Sep 10 2023, 8:36 AM
Unknown Object (File)
Aug 3 2023, 7:37 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.