1 //===- llvm/Support/Win32/Host.inc ------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file implements the Win32 Host support.
11 //===----------------------------------------------------------------------===//
13 #include "WindowsSupport.h"
19 static std::string updateTripleOSVersion(std::string Triple) {
23 std::string sys::getDefaultTargetTriple() {
24 const char *Triple = LLVM_DEFAULT_TARGET_TRIPLE;
26 // Override the default target with an environment variable named by LLVM_TARGET_TRIPLE_ENV.
27 #if defined(LLVM_TARGET_TRIPLE_ENV)
28 if (const char *EnvTriple = std::getenv(LLVM_TARGET_TRIPLE_ENV))