mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 07:28:58 +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 bcObjLinks []bitcodeToObjectLink
|
||||||
var newObjectFiles []string
|
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)
|
wg.Add(2)
|
||||||
go execCompile(compilerExecName, pr, &wg, &ok)
|
go execCompile(compilerExecName, pr, &wg, &ok)
|
||||||
go buildAndAttachBitcode(compilerExecName, pr, &bcObjLinks, &newObjectFiles, &wg)
|
go buildAndAttachBitcode(compilerExecName, pr, &bcObjLinks, &newObjectFiles, &wg)
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
}
|
||||||
|
|
||||||
//grok the exit code
|
//grok the exit code
|
||||||
if !ok {
|
if !ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user