trying to make it work without -rdynamic
This commit is contained in:
@@ -2,22 +2,15 @@
|
||||
#include "ld.h"
|
||||
#include "helper.h"
|
||||
#include "tier0/platform.h"
|
||||
#include "tier1/interface.h"
|
||||
#include "signal.h"
|
||||
|
||||
ADD_DEPENDENCY_BUILD_FILE("../tier0/__build.cpp")
|
||||
ADD_DEPENDENCY_BUILD_FILE("../tier1/__build.cpp")
|
||||
ADD_DEPENDENCY_BUILD_FILE("../tier2/__build.cpp")
|
||||
|
||||
|
||||
CUtlVector<CUtlString> g_CompiledFiles = {
|
||||
|
||||
"../tier0/lib.cpp",
|
||||
"../tier0/mem.cpp",
|
||||
"../tier0/platform.cpp",
|
||||
"../tier1/interface.cpp",
|
||||
"../tier1/utlbuffer.cpp",
|
||||
"../tier1/utlstring.cpp",
|
||||
"../tier1/utlvector.cpp",
|
||||
"../tier1/utlmap.cpp",
|
||||
"../tier1/commandline.cpp",
|
||||
"../tier2/filesystem.cpp",
|
||||
"../tier2/filesystem_libc.cpp",
|
||||
"../tier2/fileformats/ini.cpp",
|
||||
|
||||
"main.cpp",
|
||||
"library/runner.cpp",
|
||||
@@ -39,6 +32,11 @@ CUtlVector<CUtlString> g_CompiledFiles = {
|
||||
|
||||
};
|
||||
|
||||
CreateInterfaceFn fpcFactory;
|
||||
ILinker *linker;
|
||||
ICCompiler *ccompiler;
|
||||
IFileSystem2 *filesystem2;
|
||||
|
||||
CUtlVector<CUtlString> g_IncludeDirectories = {
|
||||
"public",
|
||||
"../public",
|
||||
@@ -47,6 +45,10 @@ CUtlVector<CUtlString> g_IncludeDirectories = {
|
||||
|
||||
DECLARE_BUILD_STAGE(fpc)
|
||||
{
|
||||
DEPEND_ON_PROJECT("tier0");
|
||||
DEPEND_ON_PROJECT("tier1");
|
||||
DEPEND_ON_PROJECT("tier2");
|
||||
|
||||
if (linker->IsLibraryExists("clang"))
|
||||
g_CompiledFiles.AppendTail("library/clang/c_libclang.cpp");
|
||||
else
|
||||
@@ -58,6 +60,8 @@ DECLARE_BUILD_STAGE(fpc)
|
||||
compileProject.files = g_CompiledFiles;
|
||||
compileProject.includeDirectories = g_IncludeDirectories;
|
||||
ldProject = ccompiler->Compile(&compileProject);
|
||||
ldProject.libraryObjects = GET_PROJECT_LIBRARY("tier0", "tier0");
|
||||
|
||||
if (linker->IsLibraryExists("clang"))
|
||||
ldProject.libraries.AppendTail("clang");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user