started working on ini parser
This commit is contained in:
@@ -34,7 +34,6 @@ LinkProject_t CClangCompiler::Compile( CProject_t *pProject )
|
||||
{
|
||||
if (!clangbackend && CommandLine()->CheckParam("-experimental_header_include"))
|
||||
clangbackend = (IClangBackend*)CreateInterface(CLANG_BACKEND_INTERFACE_NAME, NULL);
|
||||
V_printf("CLANG: %p\n", clangbackend);
|
||||
|
||||
if (pProject->m_szName == 0)
|
||||
{
|
||||
@@ -121,11 +120,12 @@ LinkProject_t CClangCompiler::Compile( CProject_t *pProject )
|
||||
}
|
||||
|
||||
if (clangbackend)
|
||||
bAreDependenciesUpdated = clangbackend->AreFileDependenciesUpdated(file, szOutputFile, args);
|
||||
bAreDependenciesUpdated = clangbackend->AreFileDependenciesUpdated(file, 0, szOutputFile, args);
|
||||
if (!filesystem2->ShouldRecompile(file, szOutputFile) && !bAreDependenciesUpdated)
|
||||
goto skipcompile;
|
||||
|
||||
args.AppendTail("-c");
|
||||
args.AppendTail("-g");
|
||||
args.AppendTail("-o");
|
||||
args.AppendTail(szOutputFile);
|
||||
args.AppendTail(file);
|
||||
@@ -150,7 +150,7 @@ skipcompile:
|
||||
if (pProject->m_target.kernel == TARGET_KERNEL_ANDROID)
|
||||
{
|
||||
if (!pProject->m_target.szSysroot)
|
||||
Plat_FatalErrorFunc("-sysroot must be specified for android\n");
|
||||
Plat_FatalErrorFunc("sysroot must be specified for android\n");
|
||||
cfile.m_szArguments.AppendHead(CUtlString("%s/bin/clang",pProject->m_target.szSysroot));
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user