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>
This commit is contained in:
a
2022-08-01 20:01:59 +02:00
committed by Elias Naur
parent ecebd405a7
commit 9768b95616
-3
View File
@@ -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")
}