mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 06:48:59 +01:00
shared/compiler: add some debug logs
This commit is contained in:
parent
78dee1604d
commit
70883e356e
@ -119,6 +119,7 @@ func buildAndAttachBitcode(compilerExecName string, pr ParserResult, bcObjLinks
|
||||
for i, srcFile := range pr.InputFiles {
|
||||
objFile, bcFile := getArtifactNames(pr, i, hidden)
|
||||
if hidden {
|
||||
LogDebug("not compile only; building object files")
|
||||
buildObjectFile(compilerExecName, pr, srcFile, objFile)
|
||||
*newObjectFiles = append(*newObjectFiles, objFile)
|
||||
}
|
||||
@ -271,6 +272,7 @@ func compileTimeLinkFiles(compilerExecName string, pr ParserResult, objFiles []s
|
||||
func buildObjectFile(compilerExecName string, pr ParserResult, srcFile string, objFile string) (success bool) {
|
||||
args := pr.CompileArgs[:]
|
||||
args = append(args, srcFile, "-c", "-o", objFile)
|
||||
LogDebug("buildObjectFile: %v", args)
|
||||
success, err := execCmd(compilerExecName, args, "")
|
||||
if !success {
|
||||
LogError("Failed to build object file for %s because: %v\n", srcFile, err)
|
||||
|
Loading…
Reference in New Issue
Block a user