This is an archive of the discontinued LLVM Phabricator instance.

compiler-rt: add support for building for Windows
AbandonedPublic

Authored by compnerd on Jun 16 2014, 9:17 AM.

Details

Reviewers
t.p.northover
Summary

This introduces a new platform of clang_windows with a PIC configuration (pic).
This allows us to build compiler-rt for Windows ARMv7 (NT), X86, and X64. It
requires that a sysroot be provided which can be constructed from the MSVCRT
headers.

Diff Detail

Event Timeline

compnerd updated this revision to Diff 10450.Jun 16 2014, 9:17 AM
compnerd retitled this revision from to compiler-rt: add support for building for Windows.
compnerd updated this object.
compnerd edited the test plan for this revision. (Show Details)
compnerd added a reviewer: t.p.northover.
compnerd set the repository for this revision to rL LLVM.
compnerd added a subscriber: abdulras.
t.p.northover added a subscriber: Unknown Object (MLST).Jun 16 2014, 10:10 AM

FYI makefile-based build system in compiler-rt is kind of in "support mode" - we try to keep it in working state on Linux/Darwin, but I am not aware of its owner, and we don't plan to extend it. I'd be really happy if you're able to use CMake for your purposes.

macho-embedded was added rather recently. Unfortunately, CMake is far more complicated to add support for this IMO (at least for me).

t.p.northover edited edge metadata.Jun 27 2014, 9:28 AM

Hi Saleem,

I obviously have nothing useful to say about the Windows specific details, so I'm probably not the best person to review this.

But this seems not to build on Linux (with an error about "lipo", so I assume the generic infrastructure is expecting OS X). There's also a file missing; I suppose the two could be related.

Cheers.

Tim.

make/platform/clang_windows.mk
6

This file is missing.

compnerd abandoned this revision.Sep 11 2020, 3:47 PM

The make based build was long ago deprecated.