blob: 3c29c60849ca2d80f1c2569b6ff2d80269fc69de [file] [log] [blame]
#ifndef BCC_CONFIG_H
#define BCC_CONFIG_H
#ifdef HAVE_BCC_CONFIG_MK_H
#include "ConfigFromMk.h"
#endif
//---------------------------------------------------------------------------
// Configuration for Disassembler
//---------------------------------------------------------------------------
#if DEBUG_MC_DISASSEMBLER
#define USE_DISASSEMBLER 1
#else
#define USE_DISASSEMBLER 0
#endif
#if defined(__HOST__)
#define DEBUG_MC_DISASSEMBLER_FILE "/tmp/mc-dis.s"
#else
#define DEBUG_MC_DISASSEMBLER_FILE "/data/local/tmp/mc-dis.s"
#endif // defined(__HOST__)
//---------------------------------------------------------------------------
// Configuration for CodeGen and CompilerRT
//---------------------------------------------------------------------------
#if defined(FORCE_ARM_CODEGEN)
#define PROVIDE_ARM_CODEGEN
#define DEFAULT_ARM_CODEGEN
#elif defined(FORCE_MIPS_CODEGEN)
#define PROVIDE_MIPS_CODEGEN
#define DEFAULT_MIPS_CODEGEN
#elif defined(FORCE_X86_CODEGEN)
#define PROVIDE_X86_CODEGEN
#if defined(__i386__)
#define DEFAULT_X86_CODEGEN
#elif defined(__x86_64__)
#define DEFAULT_X86_64_CODEGEN
#endif
#else
#define PROVIDE_ARM_CODEGEN
#define PROVIDE_MIPS_CODEGEN
#define PROVIDE_X86_CODEGEN
#if defined(__arm__)
#define DEFAULT_ARM_CODEGEN
#elif defined(__mips__)
#define DEFAULT_MIPS_CODEGEN
#elif defined(__i386__)
#define DEFAULT_X86_CODEGEN
#elif defined(__x86_64__)
#define DEFAULT_X86_64_CODEGEN
#endif
#endif
#define DEFAULT_ARM_TRIPLE_STRING "armv7-none-linux-gnueabi"
#define DEFAULT_MIPS_TRIPLE_STRING "mipsel-none-linux-gnueabi"
#define DEFAULT_X86_TRIPLE_STRING "i686-unknown-linux"
#define DEFAULT_X86_64_TRIPLE_STRING "x86_64-unknown-linux"
#if defined(DEFAULT_ARM_CODEGEN)
#define DEFAULT_TARGET_TRIPLE_STRING DEFAULT_ARM_TRIPLE_STRING
#elif defined(DEFAULT_MIPS_CODEGEN)
#define DEFAULT_TARGET_TRIPLE_STRING DEFAULT_MIPS_TRIPLE_STRING
#elif defined(DEFAULT_X86_CODEGEN)
#define DEFAULT_TARGET_TRIPLE_STRING DEFAULT_X86_TRIPLE_STRING
#elif defined(DEFAULT_X86_64_CODEGEN)
#define DEFAULT_TARGET_TRIPLE_STRING DEFAULT_X86_64_TRIPLE_STRING
#endif
#if (defined(__VFP_FP__) && !defined(__SOFTFP__))
#define ARM_USE_VFP
#endif
//---------------------------------------------------------------------------
#endif // BCC_CONFIG_H