mirror of https://github.com/acidanthera/audk.git
Fix building error in Linux
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2165 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
8d4243f1bd
commit
327bd141ad
|
@ -8,11 +8,11 @@
|
|||
//** from the company.
|
||||
//**
|
||||
//****************************************************************************
|
||||
|
||||
#include "ProcessorBind.h"
|
||||
#include <iostream>
|
||||
#include <stdexcept>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
|
@ -22,7 +22,7 @@
|
|||
#include <functional>
|
||||
using namespace std;
|
||||
|
||||
typedef unsigned __int64 ulonglong_t;
|
||||
typedef UINT64 ulonglong_t;
|
||||
|
||||
template <class T>
|
||||
class CMemoryLeakChecker : public list<T*>
|
||||
|
@ -142,7 +142,7 @@ ostream& operator << (ostream& os, const CIdentity& idRight)
|
|||
<< setw(4) << (unsigned short)(idRight.m_ullId[0] >> 16) << '-'
|
||||
<< setw(4) << (unsigned short)idRight.m_ullId[0] << '-'
|
||||
<< setw(4) << (unsigned short)(idRight.m_ullId[1] >> 48) << '-'
|
||||
<< setw(12) << (idRight.m_ullId[1] & 0xffffffffffff);
|
||||
<< setw(12) << (idRight.m_ullId[1] & 0xffffffffffffULL);
|
||||
}
|
||||
|
||||
class CInputFile : public CObjRoot
|
||||
|
|
|
@ -33,15 +33,28 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
</target>
|
||||
|
||||
<target name="Tool" depends="init">
|
||||
<condition property="gxx_extra_libs" value="stdc++ System gcc_s.10.4 gcc">
|
||||
<os family="mac"/>
|
||||
</condition>
|
||||
|
||||
<condition property="gxx_extra_libs" value="stdc++">
|
||||
<os name="linux"/>
|
||||
</condition>
|
||||
|
||||
<condition property="gxx_extra_libs" value="stdc++">
|
||||
<os family="windows"/>
|
||||
</condition>
|
||||
|
||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||
outfile="${BIN_DIR}/${ToolName}"
|
||||
outtype="executable"
|
||||
debug="true"
|
||||
optimize="speed">
|
||||
<compilerarg value="${ExtraArgus}" if="ExtraArgus" />
|
||||
<compilerarg value="/EHsc" unless="GCC"/>
|
||||
<compilerarg value="/Za" unless="GCC"/>
|
||||
|
||||
<compilerarg value="/EHsc" unless="gcc"/>
|
||||
<compilerarg value="/Za" unless="gcc"/>
|
||||
<compilerarg value="-x c++" if="gcc"/>
|
||||
|
||||
<fileset dir="${basedir}/${ToolName}"
|
||||
includes="${FileSet}"
|
||||
defaultexcludes="TRUE"
|
||||
|
@ -51,6 +64,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
<includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>
|
||||
<includepath path="${PACKAGE_DIR}/Common"/>
|
||||
<libset dir="${LIB_DIR}" libs="CommonTools"/>
|
||||
<syslibset libs="${gxx_extra_libs}" if="gcc"/>
|
||||
</cc>
|
||||
</target>
|
||||
|
||||
|
|
Loading…
Reference in New Issue