Try to autodect I386/amd64
This commit is contained in:
parent
2ca99739ae
commit
3cae98e8a5
5 changed files with 14 additions and 2 deletions
10
include/library/arch-detect.hpp
Normal file
10
include/library/arch-detect.hpp
Normal 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
|
|
@ -7,6 +7,7 @@
|
|||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include "threadtypes.hpp"
|
||||
#include "arch-detect.hpp"
|
||||
|
||||
/**
|
||||
* Information about region of memory.
|
||||
|
|
|
@ -138,5 +138,5 @@ HOST_BOOST_POSTFIX=
|
|||
|
||||
# The target architecture
|
||||
# I386 - I386/AMD64
|
||||
# Leave empty for generic.
|
||||
# Leave empty for generic/autodetect.
|
||||
ARCHITECTURE=
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "controller-parse.hpp"
|
||||
#include "string.hpp"
|
||||
#include "assembler.hpp"
|
||||
#include "arch-detect.hpp"
|
||||
#include <algorithm>
|
||||
|
||||
namespace
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue