2017-06-21 16:34:56 -07:00
|
|
|
package main
|
2017-06-22 12:14:00 -07:00
|
|
|
|
2017-06-22 13:02:11 -07:00
|
|
|
const(
|
|
|
|
// Environment variables
|
|
|
|
CONFIGURE_ONLY = "GOWLLVM_CONFIGURE_ONLY"
|
|
|
|
COMPILER_PATH = "GOWLLVM_COMPILER_PATH"
|
|
|
|
C_COMPILER_NAME = "GOWLLVM_CC_NAME"
|
|
|
|
CXX_COMPILER_NAME = "GOWLLVM_CXX_NAME"
|
2017-06-23 14:08:46 -07:00
|
|
|
LINKER_NAME = "GOWLLVM_LINK_NAME"
|
|
|
|
AR_NAME = "GOWLLVM_AR_NAME"
|
2017-06-22 13:02:11 -07:00
|
|
|
BC_STORE_PATH = "GOWLLVM_BC_STORE"
|
2017-06-22 12:14:00 -07:00
|
|
|
|
2017-06-22 13:02:11 -07:00
|
|
|
// Gowllvm functioning
|
|
|
|
ELF_SECTION_NAME = ".llvm_bc"
|
|
|
|
DARWIN_SEGMENT_NAME = "__WLLVM"
|
|
|
|
DARWIN_SECTION_NAME = "__llvm_bc"
|
2017-06-23 14:08:46 -07:00
|
|
|
|
|
|
|
// File types
|
2017-06-26 12:42:47 -07:00
|
|
|
FT_UNDEFINED = 0
|
2017-06-23 14:08:46 -07:00
|
|
|
FT_ELF_EXECUTABLE = 1
|
|
|
|
FT_ELF_OBJECT = 2
|
|
|
|
FT_ELF_SHARED = 3
|
|
|
|
FT_MACH_EXECUTABLE = 4
|
|
|
|
FT_MACH_OBJECT = 5
|
|
|
|
FT_MACH_SHARED = 6
|
|
|
|
FT_ARCHIVE = 7
|
2017-06-22 13:02:11 -07:00
|
|
|
)
|