mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 09:48:59 +01:00
revert back to two phases approach for compiling
This commit is contained in:
parent
841cbca3c3
commit
b9602ec8fe
@ -19,14 +19,13 @@ 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
|
|
||||||
if configureOnly {
|
|
||||||
execCompile(compilerExecName, pr)
|
execCompile(compilerExecName, pr)
|
||||||
os.Exit(0)
|
// If configure only is not set, build bitcode as well
|
||||||
}
|
if !configureOnly {
|
||||||
// Else try to build objects and bitcode
|
// Else try to build bitcode
|
||||||
buildAndAttachBitcode(compilerExecName, pr)
|
buildAndAttachBitcode(compilerExecName, pr)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Compiles bitcode files and attach path to the object files
|
// Compiles bitcode files and attach path to the object files
|
||||||
func buildAndAttachBitcode(compilerExecName string, pr ParserResult) {
|
func buildAndAttachBitcode(compilerExecName string, pr ParserResult) {
|
||||||
|
Loading…
Reference in New Issue
Block a user