1 //===- llvm/Support/Win32/Host.inc ------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file implements the Win32 Host support.
12 //===----------------------------------------------------------------------===//
14 #include "WindowsSupport.h"
20 static std::string updateTripleOSVersion(std::string Triple) {
24 std::string sys::getDefaultTargetTriple() {
25 const char *Triple = LLVM_DEFAULT_TARGET_TRIPLE;
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))