mirror of
https://github.com/danog/gllvm.git
synced 2024-12-02 15:37:56 +01:00
use TOOLS_PATH env variable for archiver and linker
This commit is contained in:
parent
e32b3bfeb4
commit
eb5de09ac2
12
extractor.go
12
extractor.go
@ -58,10 +58,18 @@ func parseExtractingArgs(args []string) ExtractingArgs {
|
|||||||
|
|
||||||
// Checking environment variables
|
// Checking environment variables
|
||||||
if ln := os.Getenv(LINKER_NAME); ln != "" {
|
if ln := os.Getenv(LINKER_NAME); ln != "" {
|
||||||
ea.LinkerName = ln
|
if toolsPath := os.Getenv(TOOLS_PATH); toolsPath != "" {
|
||||||
|
ea.LinkerName = toolsPath + ln
|
||||||
|
} else {
|
||||||
|
ea.LinkerName = ln
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if an := os.Getenv(AR_NAME); an != "" {
|
if an := os.Getenv(AR_NAME); an != "" {
|
||||||
ea.ArchiverName = an
|
if toolsPath := os.Getenv(TOOLS_PATH); toolsPath != "" {
|
||||||
|
ea.ArchiverName = toolsPath + an
|
||||||
|
} else {
|
||||||
|
ea.ArchiverName = an
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parsing cli input
|
// Parsing cli input
|
||||||
|
Loading…
Reference in New Issue
Block a user