mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 07:49:00 +01:00
Fix for issue #17.
This commit is contained in:
parent
3664f27aff
commit
307ea19e10
@ -150,16 +150,24 @@ func parseSwitches() (ea extractionArgs) {
|
|||||||
if *archiverNamePtr != "" {
|
if *archiverNamePtr != "" {
|
||||||
ea.ArchiverName = *archiverNamePtr
|
ea.ArchiverName = *archiverNamePtr
|
||||||
} else {
|
} else {
|
||||||
if LLVMARName != "" {
|
if LLVMToolChainBinDir != "" {
|
||||||
ea.ArchiverName = filepath.Join(LLVMToolChainBinDir, LLVMARName)
|
if LLVMARName != "" {
|
||||||
|
ea.ArchiverName = filepath.Join(LLVMToolChainBinDir, LLVMARName)
|
||||||
|
} else {
|
||||||
|
ea.ArchiverName = filepath.Join(LLVMToolChainBinDir, ea.ArchiverName)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if *linkerNamePtr != "" {
|
if *linkerNamePtr != "" {
|
||||||
ea.LinkerName = *linkerNamePtr
|
ea.LinkerName = *linkerNamePtr
|
||||||
} else {
|
} else {
|
||||||
if LLVMLINKName != "" {
|
if LLVMToolChainBinDir != "" {
|
||||||
ea.LinkerName = filepath.Join(LLVMToolChainBinDir, LLVMLINKName)
|
if LLVMLINKName != "" {
|
||||||
|
ea.LinkerName = filepath.Join(LLVMToolChainBinDir, LLVMLINKName)
|
||||||
|
} else {
|
||||||
|
ea.LinkerName = filepath.Join(LLVMToolChainBinDir, ea.LinkerName)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user