~eliasnaur/gio-cmd

9768b956166795308b87352cb5e916b924bd0617 — a 2 years ago ecebd40
Revert "gogio: refuse compilation with additional arguments"

Build arguments are passed to the program, which is useful for
platforms where there is no other way to pas them (Android, iOS).

Signed-off-by: Elias Naur <mail@eliasnaur.com>
1 files changed, 0 insertions(+), 3 deletions(-)

M gogio/main.go
M gogio/main.go => gogio/main.go +0 -3
@@ 65,9 65,6 @@ func flagValidate() error {
	if pkgPathArg == "" {
		return errors.New("specify a package")
	}
	if len(flag.Args()) > 1 {
		return fmt.Errorf("build arguments must be specified before the package (%q)", pkgPathArg)
	}
	if *target == "" {
		return errors.New("please specify -target")
	}