[PATCH] D89518: [windows-itanium] Add Windows Itanium How-To Guide

ben via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 8 15:52:43 PST 2021


bd1976llvm marked an inline comment as done.
bd1976llvm added a comment.

In D89518#2598986 <https://reviews.llvm.org/D89518#2598986>, @smeenai wrote:

> Sorry for the delay here. This looks good; thank you!

Thanks! I also have https://reviews.llvm.org/D93203 open - would be great if you could have a look at it.



================
Comment at: llvm/docs/HowToBuildWindowsItaniumPrograms.rst:45
+A reasonable work-around is to build clang with a windows-msvc default target and
+then override the triple with e.g. "-Xclang -triple -Xclang x86_64-unknown-windows-itanium".
+The linker can be specified with: "-fuse-ld=lld".
----------------
smeenai wrote:
> Why this instead of directly using `-target x86_64-unknown-windows-itanium`?
There isn't a useable driver for Windows Itanium on Windows OS yet AFAIU. -target x86_64-unknown-windows-itanium uses the CrossWindowsToolChain driver - which is somewhat out of date. Currently, it makes sense (made my build script smaller) to use the windows-msvc driver - which knows how to locate the MS sdk components - and then force that driver to invoke the Windows Itanium code with "-Xclang -triple -Xclang x86_64-unknown-windows-itanium". If there is a better way please let me know :)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89518/new/

https://reviews.llvm.org/D89518



More information about the llvm-commits mailing list