1//===- llvm/Support/Win32/Host.inc ------------------------------*- C++ -*-===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file implements the Win32 Host support.
11//
12//===----------------------------------------------------------------------===//
13
14#include "WindowsSupport.h"
15#include <cstdio>
16#include <string>
17
18using namespace llvm;
19
20static std::string updateTripleOSVersion(std::string Triple) {
21  return Triple;
22}
23
24std::string sys::getDefaultTargetTriple() {
25  const char *Triple = LLVM_DEFAULT_TARGET_TRIPLE;
26
27  // Override the default target with an environment variable named by LLVM_TARGET_TRIPLE_ENV.
28#if defined(LLVM_TARGET_TRIPLE_ENV)
29  if (const char *EnvTriple = std::getenv(LLVM_TARGET_TRIPLE_ENV))
30    Triple = EnvTriple;
31#endif
32
33  return Triple;
34}
35