Skip to content

Commit

Permalink
add missing platform.sh to http-keep-alive (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
t4lz authored Sep 8, 2023
1 parent 772fd17 commit 4b34b6d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions http-keep-alive/platform.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh

# Used in Docker build to set platform dependent variables

case $TARGETARCH in

"amd64")
echo "x86_64-unknown-linux-gnu" > /.platform
echo "" > /.compiler
;;
"arm64")
echo "aarch64-unknown-linux-gnu" > /.platform
echo "gcc-aarch64-linux-gnu" > /.compiler
;;
"arm")
echo "armv7-unknown-linux-gnueabihf" > /.platform
echo "gcc-arm-linux-gnueabihf" > /.compiler
;;
esac

0 comments on commit 4b34b6d

Please sign in to comment.