Files
packages/lang/golang/go-strip-helper
George Sapkin 5657eb0e2e golang: split src into separate packages
Split misc sources and test data into separate packages. Reduces target
src package size by a third.

Move architecture-dependent generated source from src to the main
package.

Mark doc, misc, src and tests packages with PKGARCH:=all as they don't
have any architecture-specific files.

Fix stripping and strip compiler only.

Fixes: c137c382 ("golang: new packages")
Link: https://github.com/openwrt/packages/pull/28445
Suggested-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: George Sapkin <george@sapk.in>
2026-02-02 10:10:03 +02:00

17 lines
212 B
Bash
Executable File

#!/bin/sh
#
# Copyright (C) 2026 George Sapkin
#
# SPDX-License-Identifier: GPL-2.0-only
for last; do :; done
case "$last" in
*-doc|*-misc|*-src|*-tests)
echo "Not stripping: $last"
exit 0
;;
esac
"$@"