Change-Id: I2e02d02d9208fc2dbf01c0cea4a67c288967cd07
Reviewed-on: https://go-review.googlesource.com/c/go/+/315276
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
my $errors = 0;
my $_32bit = "";
my $tags = ""; # build tags
+my $newtags = ""; # new style build tags
my $aix = 0;
my $solaris = 0;
exit 1;
}
+# TODO: this assumes tags are just simply comma separated. For now this is all the uses.
+$newtags = $tags =~ s/,/ && /r;
+
print <<EOF;
// $cmdline
// Code generated by the command above; DO NOT EDIT.
+//go:build $newtags
// +build $tags
package $package