Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a "default host triple" in Rust?

Tags:

rust

rustup

While doing a custom installation of Rust on Windows 10, I am asked "Default host triple?"

I have no clue what this is, and the Rustup repository page, which came up in a web search, does not really explain it.

like image 310
Sabuncu Avatar asked Mar 19 '18 16:03

Sabuncu


1 Answers

Host triples identify the architecture and OS of the system that will ultimately run your executable. Mine is x86_64-pc-linux-gnu for example. The general form is cpu-vendor-os. Windows might be something like x86_64-pc-windows-msvc. You can read more at these links:

  • Automake cross compilation
  • Clang cross compilation
like image 85
Tavian Barnes Avatar answered Oct 14 '22 07:10

Tavian Barnes