From 6e3bbfcb25ef697c6023249067138d3fffe93283 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 3 Mar 2025 21:31:14 +0800 Subject: forge/setup: Note about cross compilation --- content/forge/setup.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/forge/setup.md b/content/forge/setup.md index 4125b98..37be79c 100644 --- a/content/forge/setup.md +++ b/content/forge/setup.md @@ -15,6 +15,10 @@ Clone the source code and run `make`. Then run `make install` to install it. By default, it installs to `/usr/local/`. +Note that setting `GOARCH` to cross compile does not completely work, since the +hooks handler is written in C. You need to customize `CC` to point to a proper +cross compiler. + ## Runtime dependencies * Git -- cgit v1.2.3