mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 06:59:05 +01:00
change output name generator + update readme
This commit is contained in:
parent
50bfc93217
commit
f11a1405aa
@ -35,9 +35,9 @@ gllvm currently works with clang.
|
||||
|
||||
#### Requirements
|
||||
|
||||
You need the Go compiler to compile gllvm, and the clang/clang++ executables
|
||||
to use gllvm. Follow the instructions here to get started:
|
||||
https://golang.org/doc/install.
|
||||
You need the Go compiler to compile gllvm, and both the clang/clang++
|
||||
executables and the llvm tools -- llvm-link, llvm-ar -- to use gllvm. Follow
|
||||
the instructions here to get started: https://golang.org/doc/install.
|
||||
|
||||
As for now, let us name `$GOROOT` your root Go path that you can obtain by
|
||||
typing `go env GOPATH` in a terminal session -- it is usually `$HOME/go`
|
||||
@ -193,4 +193,3 @@ For example:
|
||||
```
|
||||
export GLLVM_OUTPUT_FILE=/tmp/gllvm.log
|
||||
```
|
||||
|
||||
|
@ -128,6 +128,9 @@ func parseExtractingArgs(args []string) ExtractingArgs {
|
||||
ea.ArArgs = append(ea.ArArgs, "-v")
|
||||
}
|
||||
ea.ObjectTypeInArchive = FT_MACH_OBJECT
|
||||
default:
|
||||
log.Fatal("Unsupported platform: ", platform)
|
||||
}
|
||||
|
||||
// Create output filename if not given
|
||||
if ea.OutputFile == "" {
|
||||
@ -144,10 +147,6 @@ func parseExtractingArgs(args []string) ExtractingArgs {
|
||||
}
|
||||
}
|
||||
|
||||
default:
|
||||
log.Fatal("Unsupported platform: ", platform)
|
||||
}
|
||||
|
||||
return ea
|
||||
}
|
||||
|
||||
@ -303,7 +302,6 @@ func resolveBitcodePath(bcPath string) string {
|
||||
} else {
|
||||
return bcPath
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func getFileType(realPath string) (fileType int) {
|
||||
|
Loading…
Reference in New Issue
Block a user