mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 04:59:04 +01:00
Merge pull request #65 from clarence-glx/master
fix flang .mod file conflict issue
This commit is contained in:
commit
48db30df93
@ -81,10 +81,19 @@ func Compile(args []string, compiler string) (exitCode int) {
|
||||
var bcObjLinks []bitcodeToObjectLink
|
||||
var newObjectFiles []string
|
||||
|
||||
if compiler == "flang" {
|
||||
wg.Add(1)
|
||||
go execCompile(compilerExecName, pr, &wg, &ok)
|
||||
wg.Wait();
|
||||
wg.Add(1);
|
||||
go buildAndAttachBitcode(compilerExecName, pr, &bcObjLinks, &newObjectFiles, &wg)
|
||||
wg.Wait()
|
||||
} else {
|
||||
wg.Add(2)
|
||||
go execCompile(compilerExecName, pr, &wg, &ok)
|
||||
go buildAndAttachBitcode(compilerExecName, pr, &bcObjLinks, &newObjectFiles, &wg)
|
||||
wg.Wait()
|
||||
}
|
||||
|
||||
//grok the exit code
|
||||
if !ok {
|
||||
|
Loading…
Reference in New Issue
Block a user