mirror of
https://github.com/danog/gllvm.git
synced 2024-11-26 19:24:40 +01:00
fix flang .mode file conflict issue
This commit is contained in:
parent
09cd80c589
commit
c31c677f0b
@ -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