48 lines
2.2 KiB
Modula-2
48 lines
2.2 KiB
Modula-2
headers = llvm-c/Core.h llvm-c/Target.h llvm-c/Analysis.h llvm-c/BitWriter.h \
|
|
llvm-c/BitReader.h llvm-c/Linker.h DebugInfoC.h
|
|
|
|
headerFilter = llvm-c/* DebugInfoC.h
|
|
|
|
compilerOpts = -std=c99 \
|
|
-Wall -W -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers \
|
|
-pedantic -Wno-long-long -Wcovered-switch-default -Wdelete-non-virtual-dtor \
|
|
-DNDEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
|
|
|
|
|
|
linker = clang++
|
|
|
|
linkerOpts = -fvisibility-inlines-hidden \
|
|
-Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers \
|
|
-pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor \
|
|
-std=c++11 \
|
|
-DNDEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS \
|
|
-ldebugInfo -lLLVMTarget -lLLVMMC -lLLVMLinker -lLLVMTransformUtils -lLLVMBitWriter \
|
|
-lLLVMBitReader -lLLVMAnalysis -lLLVMProfileData -lLLVMObject -lLLVMMCParser -lLLVMMC \
|
|
-lLLVMCore -lLLVMBinaryFormat -lLLVMSupport -lLLVMDemangle
|
|
|
|
# ./llvm-config --libs analysis bitreader bitwriter core linker target
|
|
|
|
|
|
linkerOpts.osx = -fPIC \
|
|
-Wl,-search_paths_first -Wl,-headerpad_max_install_names \
|
|
-lpthread -lz -lm -lcurses -Wl,-U,_futimens -Wl,-U,_LLVMDumpType
|
|
|
|
linkerOpts.linux= -fPIC \
|
|
-Wl,-z,noexecstack \
|
|
-lrt -ldl -lpthread -lz -lm
|
|
|
|
linkerOpts.mingw = -lole32 -luuid -static-libgcc -static-libstdc++ \
|
|
-Wl,-Bstatic,--whole-archive -lwinpthread -Wl,--no-whole-archive,-Bdynamic
|
|
|
|
# It looks like mingw port compiled without LLVM_ENABLE_DUMP
|
|
#Note: ld on mingw process -Wl,-U,_LLVMDumpType use different from other platform
|
|
# way, using this option cause linkage error:
|
|
# ld: -r and -shared may not be used together
|
|
excludedFunctions.mingw = LLVMDumpType
|
|
|
|
|
|
excludedFunctions = LLVMInitializeAllAsmParsers LLVMInitializeAllAsmPrinters LLVMInitializeAllDisassemblers \
|
|
LLVMInitializeAllTargetInfos LLVMInitializeAllTargetMCs LLVMInitializeAllTargets LLVMInitializeNativeTarget \
|
|
LLVMInitializeNativeAsmParser LLVMInitializeNativeAsmPrinter LLVMInitializeNativeDisassembler
|
|
|
|
strictEnums = LLVMIntPredicate LLVMOpcode LLVMDLLStorageClass LLVMCallConv LLVMThreadLocalMode LLVMAtomicOrdering |