Try to autodect I386/amd64

This commit is contained in:
Ilari Liusvaara 2013-10-28 15:37:24 +02:00
parent 2ca99739ae
commit 3cae98e8a5
5 changed files with 14 additions and 2 deletions

View file

@ -0,0 +1,10 @@
#ifndef _library__archdetect__hpp__included__
#define _library__archdetect__hpp__included__
#if defined(__i386__) || defined(__x86_64__)
#ifndef ARCH_IS_I386
#define ARCH_IS_I386
#endif
#endif
#endif

View file

@ -7,6 +7,7 @@
#include <cstdint>
#include <cstring>
#include "threadtypes.hpp"
#include "arch-detect.hpp"
/**
* Information about region of memory.

View file

@ -138,5 +138,5 @@ HOST_BOOST_POSTFIX=
# The target architecture
# I386 - I386/AMD64
# Leave empty for generic.
# Leave empty for generic/autodetect.
ARCHITECTURE=

View file

@ -1,6 +1,7 @@
#include "controller-parse.hpp"
#include "string.hpp"
#include "assembler.hpp"
#include "arch-detect.hpp"
#include <algorithm>
namespace

View file

@ -3,7 +3,7 @@
#include <sstream>
#include <iostream>
#include <iomanip>
#include "arch-detect.hpp"
//Since this isn't used for anything too performance-sensitive, just write a implementation, no need to specially
//optimize.