improved lots of stuff
This commit is contained in:
@@ -37,6 +37,10 @@ CUtlVector<CUtlString> g_IncludeDirectories = {
|
||||
|
||||
DECLARE_BUILD_STAGE(fpc)
|
||||
{
|
||||
if (linker->IsLibraryExists("clang"))
|
||||
g_CompiledFiles.AppendTail("library/clang/c_libclang.cpp");
|
||||
else
|
||||
V_printf("Warning: to support included files libclang must be installed.");
|
||||
CProject_t compileProject = {};
|
||||
LinkProject_t ldProject = {};
|
||||
|
||||
@@ -44,6 +48,8 @@ DECLARE_BUILD_STAGE(fpc)
|
||||
compileProject.files = g_CompiledFiles;
|
||||
compileProject.includeDirectories = g_IncludeDirectories;
|
||||
ldProject = ccompiler->Compile(&compileProject);
|
||||
if (linker->IsLibraryExists("clang"))
|
||||
ldProject.libraries.AppendTail("clang");
|
||||
|
||||
CUtlString outputProject = linker->Link(&ldProject);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user