File: gccgo-wrapper.sh

package info (click to toggle)
golang-github-containers-storage 1.24.8%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,324 kB
  • sloc: sh: 812; ansic: 319; makefile: 175; awk: 12
file content (11 lines) | stat: -rwxr-xr-x 304 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
#
# Work around, based on one described in https://github.com/golang/go/issues/15628
#
addflags=
for arg in "$@" ; do
	if test -d "$arg"/github.com/containers/storage/vendor ; then
		addflags="$addflags -I $arg/github.com/containers/storage/vendor"
	fi
done
exec gccgo $addflags "$@"