revert back to two phases approach for compiling

This commit is contained in:
Loic Gelle 2017-06-26 14:26:26 -07:00
parent 841cbca3c3
commit b9602ec8fe

View File

@ -19,13 +19,12 @@ func compile(args []string, compilerName string) {
} }
var pr = parse(args) var pr = parse(args)
// If configure only is set, try to execute normal compiling command then exit silently execCompile(compilerExecName, pr)
if configureOnly { // If configure only is not set, build bitcode as well
execCompile(compilerExecName, pr) if !configureOnly {
os.Exit(0) // Else try to build bitcode
buildAndAttachBitcode(compilerExecName, pr)
} }
// Else try to build objects and bitcode
buildAndAttachBitcode(compilerExecName, pr)
} }
// Compiles bitcode files and attach path to the object files // Compiles bitcode files and attach path to the object files