Toolchain: Actually compile the GN binary in BuildGN.sh

The gen.py script only generates the build.ninja file for GN. We have to
explicitly build it afterwards.

This also sets the executable bit on BuildGN.sh.
This commit is contained in:
Timothy Flynn 2023-11-13 16:10:13 -05:00 committed by Tim Flynn
parent 1e8004734f
commit 2cb977e368
Notes: sideshowbarker 2024-07-17 03:35:16 +09:00

2
Toolchain/BuildGN.sh Normal file → Executable file
View file

@ -28,6 +28,8 @@ git fetch origin
git checkout $GIT_REV
./build/gen.py --out-path="$BUILD_DIR" --allow-warnings
ninja -C "$BUILD_DIR"
mkdir -p "$PREFIX_DIR/bin"
cp "$BUILD_DIR/gn" "$PREFIX_DIR/bin"