Antonio Mika
·
2022-08-31
1#!/bin/bash
2
3if [[ "$GOARCH" == "arm64" ]]; then
4 GCC_ARCH="aarch64"
5elif [[ "$GOARCH" == "amd64" ]]; then
6 GCC_ARCH="x86_64"
7fi
8
9exec "${GCC_ARCH}-linux-gnu-gcc" "$@"
1#!/bin/bash
2
3if [[ "$GOARCH" == "arm64" ]]; then
4 GCC_ARCH="aarch64"
5elif [[ "$GOARCH" == "amd64" ]]; then
6 GCC_ARCH="x86_64"
7fi
8
9exec "${GCC_ARCH}-linux-gnu-gcc" "$@"