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

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 8 22:44:52 PST 2021


mstorsjo added inline comments.


================
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".
----------------
bd1976llvm wrote:
> 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 :)
`--target=x86_64-windows-itanium` should work; there's two syntaxes for that option in the regular clang driver, `-target <triple>` and `--target=<triple>`, the latter also works in clang-cl.


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