readme: simplify installation instructions
This also cleans up the remaining mentioned LLGOROOT.
This commit is contained in:
15
README.md
15
README.md
@@ -261,10 +261,7 @@ brew update # execute if needed
|
|||||||
brew install llvm@18 pkg-config libgc
|
brew install llvm@18 pkg-config libgc
|
||||||
brew install cjson sqlite python@3.12 # optional
|
brew install cjson sqlite python@3.12 # optional
|
||||||
export PATH=$(brew --prefix llvm@18)/bin:$PATH # you may want to add this to your shell RC file, e.g. ~/.zshrc
|
export PATH=$(brew --prefix llvm@18)/bin:$PATH # you may want to add this to your shell RC file, e.g. ~/.zshrc
|
||||||
git clone https://github.com/goplus/llgo.git
|
go install -v github.com/goplus/llgo/cmd/llgo@latest
|
||||||
cd llgo
|
|
||||||
export LLGOROOT="/path/to/llgo" # Replace this with the root directory of the llgo project
|
|
||||||
go install -v ./...
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### on Linux (Debian/Ubuntu)
|
### on Linux (Debian/Ubuntu)
|
||||||
@@ -276,10 +273,7 @@ sudo apt-get update # execute if needed
|
|||||||
sudo apt-get install -y llvm-18-dev clang-18 lld-18 pkg-config libgc-dev
|
sudo apt-get install -y llvm-18-dev clang-18 lld-18 pkg-config libgc-dev
|
||||||
sudo apt-get install -y libcjson-dev libsqlite3-dev python3.12-dev # optional
|
sudo apt-get install -y libcjson-dev libsqlite3-dev python3.12-dev # optional
|
||||||
export PATH=/usr/lib/llvm-18/bin:$PATH # you may want to add this to your shell RC file, e.g. ~/.bashrc
|
export PATH=/usr/lib/llvm-18/bin:$PATH # you may want to add this to your shell RC file, e.g. ~/.bashrc
|
||||||
git clone https://github.com/goplus/llgo.git
|
go install -v github.com/goplus/llgo/cmd/llgo@latest
|
||||||
cd llgo
|
|
||||||
export LLGOROOT="/path/to/llgo" # Replace this with the root directory of the llgo project
|
|
||||||
go install -v ./...
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### on Windows
|
### on Windows
|
||||||
@@ -298,8 +292,9 @@ TODO
|
|||||||
How do I generate these tools?
|
How do I generate these tools?
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
export CC=clang CXX=clang++ # only for go build; optional if you have other compatible compilers
|
git clone https://github.com/goplus/llgo.git
|
||||||
go install -v ./... # compile all tools except pydump
|
cd llgo
|
||||||
|
go install -v ./chore/... # compile all tools except pydump
|
||||||
cd chore/_xtool
|
cd chore/_xtool
|
||||||
llgo install ./... # compile pydump
|
llgo install ./... # compile pydump
|
||||||
go install github.com/goplus/hdq/chore/pysigfetch@v0.8.1 # compile pysigfetch
|
go install github.com/goplus/hdq/chore/pysigfetch@v0.8.1 # compile pysigfetch
|
||||||
|
|||||||
@@ -17,8 +17,6 @@
|
|||||||
package cl_test
|
package cl_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
|
||||||
"path/filepath"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/goplus/llgo/cl"
|
"github.com/goplus/llgo/cl"
|
||||||
@@ -67,8 +65,6 @@ func TestPython(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestGoPkgMath(t *testing.T) {
|
func TestGoPkgMath(t *testing.T) {
|
||||||
root, _ := filepath.Abs("..")
|
|
||||||
os.Setenv("LLGOROOT", root)
|
|
||||||
conf := build.NewDefaultConf(build.ModeInstall)
|
conf := build.NewDefaultConf(build.ModeInstall)
|
||||||
build.Do([]string{"math"}, conf)
|
build.Do([]string{"math"}, conf)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user