Fix for issue #17.

This commit is contained in:
Ian A. Mason 2018-05-09 07:07:56 -07:00
parent 3664f27aff
commit 307ea19e10

View File

@ -150,16 +150,24 @@ func parseSwitches() (ea extractionArgs) {
if *archiverNamePtr != "" {
ea.ArchiverName = *archiverNamePtr
} else {
if LLVMToolChainBinDir != "" {
if LLVMARName != "" {
ea.ArchiverName = filepath.Join(LLVMToolChainBinDir, LLVMARName)
} else {
ea.ArchiverName = filepath.Join(LLVMToolChainBinDir, ea.ArchiverName)
}
}
}
if *linkerNamePtr != "" {
ea.LinkerName = *linkerNamePtr
} else {
if LLVMToolChainBinDir != "" {
if LLVMLINKName != "" {
ea.LinkerName = filepath.Join(LLVMToolChainBinDir, LLVMLINKName)
} else {
ea.LinkerName = filepath.Join(LLVMToolChainBinDir, ea.LinkerName)
}
}
}