From b2f8cc0f17d8fa32f6830d8f139a81938611e345 Mon Sep 17 00:00:00 2001
From: Ian Douglas Scott <ian@iandouglasscott.com>
Date: Thu, 29 Jun 2017 16:09:07 -0700
Subject: [PATCH] Pass --target to pkg

---
 cook.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cook.sh b/cook.sh
index b70b43826..9d11a95b9 100755
--- a/cook.sh
+++ b/cook.sh
@@ -214,7 +214,7 @@ function op {
             echo "target = \"$TARGET\"" >> "stage.toml"
             mkdir -p stage/pkg
             cp -v stage.toml "stage/pkg/$1.toml"
-            CC=cc cargo run --release --manifest-path "$ROOT/pkgutils/Cargo.toml" --bin pkg -- create stage
+            CC=cc cargo run --release --manifest-path "$ROOT/pkgutils/Cargo.toml" --bin pkg -- --target=$TARGET create stage
             ;;
         untar)
             rm -rfv stage.tar.gz stage.sig stage.toml
-- 
GitLab