From 70883e356e697df5fa114d1d48aaacb2d4c82a62 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Thu, 18 Feb 2021 10:39:32 -0500 Subject: [PATCH] shared/compiler: add some debug logs --- shared/compiler.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shared/compiler.go b/shared/compiler.go index 8c5fcc3..a1da3a5 100644 --- a/shared/compiler.go +++ b/shared/compiler.go @@ -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)