This is an archive of the discontinued LLVM Phabricator instance.

[gn build] Support linux/win compiler-rt cross compilation
ClosedPublic

Authored by aeubanks on Feb 7 2023, 6:15 PM.

Details

Summary

Right now the gn build sort of has a notion of a "host stage2" toolchain. This patch partially veers away from that and goes toward explicitly listing stage2 toolchain arch/cpu combinations.

Diff Detail

Event Timeline

aeubanks created this revision.Feb 7 2023, 6:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 7 2023, 6:15 PM
Herald added subscribers: Enna1, dberris. · View Herald Transcript
aeubanks requested review of this revision.Feb 7 2023, 6:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 7 2023, 6:15 PM
aeubanks updated this revision to Diff 497505.Feb 14 2023, 5:39 PM

don't use win_sysroot on win hosts

aeubanks updated this revision to Diff 497527.Feb 14 2023, 6:43 PM

fix win build

aeubanks edited the summary of this revision. (Show Details)Feb 14 2023, 6:45 PM
hans accepted this revision.Feb 17 2023, 8:12 AM

lgtm

llvm/utils/gn/build/toolchain/compiler.gni
17

ultra nit: line break

This revision is now accepted and ready to land.Feb 17 2023, 8:12 AM
This revision was landed with ongoing or failed builds.Feb 17 2023, 9:33 AM
This revision was automatically updated to reflect the committed changes.