@@ -76,6 +76,12 @@ var LLVMLoggingLevel string
7676//LLVMLoggingFile is the path to the optional logfile (useful when configuring)
7777var LLVMLoggingFile string
7878
79+ //LLVMObjcopy is the path to the objcopy executable used to attach the bitcode on *nix.
80+ var LLVMObjcopy string
81+
82+ //LLVMLd is the path to the ld executable used to attach the bitcode on OSX.
83+ var LLVMLd string
84+
7985const (
8086 envpath = "LLVM_COMPILER_PATH"
8187 envcc = "LLVM_CC_NAME"
@@ -86,6 +92,9 @@ const (
8692 envbc = "WLLVM_BC_STORE"
8793 envlvl = "WLLVM_OUTPUT_LEVEL"
8894 envfile = "WLLVM_OUTPUT_FILE"
95+ envld = "GLLVM_LD" //iam: we are deviating from wllvm here.
96+ envobjcopy = "GLLVM_OBJCOPY" //iam: we are deviating from wllvm here.
97+ //wllvm uses a BINUTILS_TARGET_PREFIX, which seems less general.
8998)
9099
91100func init () {
@@ -102,10 +111,12 @@ func init() {
102111 LLVMLoggingLevel = os .Getenv (envlvl )
103112 LLVMLoggingFile = os .Getenv (envfile )
104113
114+ LLVMObjcopy = os .Getenv (envobjcopy )
115+ LLVMLd = os .Getenv (envld )
105116}
106117
107118func printEnvironment () {
108- vars := []string {envpath , envcc , envcxx , envar , envlnk , envcfg , envbc , envlvl , envfile }
119+ vars := []string {envpath , envcc , envcxx , envar , envlnk , envcfg , envbc , envlvl , envfile , envobjcopy , envld }
109120
110121 informUser ("\n Living in this environment:\n \n " )
111122 for _ , v := range vars {
0 commit comments