From 4b05cedc46b891f3ee2fbd735e6d92d94d3751b9 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 17 Mar 2022 16:34:51 -0600 Subject: [PATCH] docs: use markdown code blocks w/ highlighting --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index aba5fab..330285c 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,19 @@ # zigtool -The golang tool of the zig compiler automatically compiles different targets according to the GOOS GOARCH environment variable. You need to install zig. +The golang tool of the zig compiler automatically compiles different targets according to the `GOOS` and `GOARCH` environment variables. You need to install zig. +```bash go install github.com/dosgo/zigtool/zigcc@latest - go install github.com/dosgo/zigtool/zigcpp@latest +``` - - - +```bash set CC=zigcc set CXX=zigcpp +``` Manually set the compilation target +```bash set ZIGTARGET=x86_64-windows-gnu +```