From b94586fdf4d0545d0bc6a814d4cc3cc0176c66d1 Mon Sep 17 00:00:00 2001 From: luoliwoshang <2643523683@qq.com> Date: Tue, 18 Jun 2024 18:47:00 +0800 Subject: [PATCH] README:update install instruction of LLGOROOT --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3989f3c9..8705dc79 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,6 @@ The `_demo` directory contains some C standard libary related demos (it start wi To run these demos (If you haven't installed `llgo` yet, please refer to [How to install](#how-to-install)): ```sh -export LLGOROOT=`pwd` cd # eg. cd _demo/hello llgo run . ``` @@ -140,7 +139,6 @@ Note that the file name must be written in a platform-independent format, using Then you can run the demos: ```sh -export LLGOROOT=`pwd` cd # eg. cd _pydemo/callpy llgo run . ``` @@ -236,6 +234,7 @@ brew install llvm@17 pkg-config libgc brew install cjson sqlite python@3.12 # optional export PATH=$(brew --prefix llvm@17)/bin:$PATH # you may want to add this to your shell RC file, e.g. ~/.zshrc export CC=clang CXX=clang++ # only for go build; optional if you have other compatible compilers +export LLGOROOT="/path/to/llgo" # Replace this with the root directory of the llgo project go install -v ./... ``` @@ -249,6 +248,7 @@ sudo apt-get install -y llvm-17-dev clang-17 lld-17 pkg-config libgc-dev sudo apt-get install -y libcjson-dev libsqlite3-dev python3.12-dev # optional export PATH=/usr/lib/llvm-17/bin:$PATH # you may want to add this to your shell RC file, e.g. ~/.bashrc export CC=clang CXX=clang++ # only for go build; optional if you have other compatible compilers +export LLGOROOT="/path/to/llgo" # Replace this with the root directory of the llgo project go install -v ./... ```