blob: 086e0e7cb4a00e9d9e49a4db844be9acd57329c2 [file] [log] [blame] [edit]
//===-- Distro.h --------------------------------------------------===//
//
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
//===----------------------------------------------------------------------===//
//
// Defines the DetectDistro helper function and return codes.
//
//===----------------------------------------------------------------------===//
#ifndef GOLLVM_DRIVER_DISTRO_H
#define GOLLVM_DRIVER_DISTRO_H
#include "GccUtils.h"
#include "llvm/TargetParser/Triple.h"
namespace distro {
enum DistroVariety {
DistroAlpine,
DistroArchLinux,
DistroDebian,
DistroRedhat,
DistroGentoo,
DistroOpenSUSE,
DistroUbuntu,
DistroUnknown
};
extern DistroVariety DetectDistro(gnutools::gccdetect::InspectFS &ifs,
const llvm::Triple &target);
} // end namespace distro
#endif // GOLLVM_DRIVER_DISTRO_H