gllvm/constants.go

45 lines
973 B
Go

package main
import (
"os"
)
const (
// Environment variables
envCONFIGUREONLY = "GLLVM_CONFIGURE_ONLY"
envBCSTOREPATH = "GLLVM_BC_STORE"
// Gllvm functioning (once we have it working we can change the W to G; but for the time being leave it so that extract-bc works)
elfSECTIONNAME = ".llvm_bc"
darwinSEGMENTNAME = "__WLLVM"
darwinSECTIONNAME = "__llvm_bc"
)
var LLVMToolChainBinDir = ""
var LLVMCCName = ""
var LLVMCXXName = ""
var LLVMARName = ""
var LLVMLINKName = ""
func init(){
LLVMToolChainBinDir = os.Getenv("GLLVM_TOOLS_PATH")
LLVMCCName = os.Getenv("GLLVM_CC_NAME")
LLVMCXXName = os.Getenv("GLLVM_CXX_NAME")
LLVMARName = os.Getenv("GLLVM_AR_NAME")
LLVMLINKName = os.Getenv("GLLVM_LINK_NAME")
}
const (
// File types
ftUNDEFINED = iota
ftELFEXECUTABLE
ftELFOBJECT
ftELFSHARED
ftMACHEXECUTABLE
ftMACHOBJECT
ftMACHSHARED
ftARCHIVE
)