mirror of https://github.com/acidanthera/audk.git
Fix building issue for Mac OS
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2167 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
6e73f334d9
commit
1b266b0c7e
|
@ -24,6 +24,12 @@ using namespace std;
|
||||||
|
|
||||||
typedef UINT64 ulonglong_t;
|
typedef UINT64 ulonglong_t;
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#if __STDC_VERSION__ < 199901L
|
||||||
|
#define __FUNCTION__ __FILE__
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
class CMemoryLeakChecker : public list<T*>
|
class CMemoryLeakChecker : public list<T*>
|
||||||
{
|
{
|
||||||
|
|
|
@ -51,9 +51,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
debug="true"
|
debug="true"
|
||||||
optimize="speed">
|
optimize="speed">
|
||||||
<compilerarg value="${ExtraArgus}" if="ExtraArgus" />
|
<compilerarg value="${ExtraArgus}" if="ExtraArgus" />
|
||||||
|
<compilerarg value="-x" if="gcc"/>
|
||||||
|
<compilerarg value="c++" if="gcc"/>
|
||||||
<compilerarg value="/EHsc" unless="gcc"/>
|
<compilerarg value="/EHsc" unless="gcc"/>
|
||||||
<compilerarg value="/Za" unless="gcc"/>
|
<compilerarg value="/Za" unless="gcc"/>
|
||||||
<compilerarg value="-x c++" if="gcc"/>
|
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
includes="${FileSet}"
|
includes="${FileSet}"
|
||||||
|
|
Loading…
Reference in New Issue