mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-05 08:37:31 -04:00
unix: fix mkall.sh and mksyscall.pl
Each language has its own operators. Change-Id: I765d4d56aeafe693d22914de7ee970d7b1928a25 Reviewed-on: https://go-review.googlesource.com/41832 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ case "$#" in
|
|||||||
exit 2
|
exit 2
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ "$GOOS" -eq "linux" ]] && [[ "$GOARCH" != "sparc64" ]]; then
|
if [[ "$GOOS" = "linux" ]] && [[ "$GOARCH" != "sparc64" ]]; then
|
||||||
# Use then new build system
|
# Use then new build system
|
||||||
# Files generated through docker (use $cmd so you can Ctl-C the build or run)
|
# Files generated through docker (use $cmd so you can Ctl-C the build or run)
|
||||||
$cmd docker build --tag generate:$GOOS $GOOS
|
$cmd docker build --tag generate:$GOOS $GOOS
|
||||||
|
|||||||
+1
-1
@@ -70,7 +70,7 @@ if($ARGV[0] =~ /^-/) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Check that we are using the new build system if we should
|
# Check that we are using the new build system if we should
|
||||||
if($ENV{'GOOS'} eq "linux" || $ENV{'GOARCH'} ne "sparc64") {
|
if($ENV{'GOOS'} eq "linux" && $ENV{'GOARCH'} ne "sparc64") {
|
||||||
if($ENV{'GOLANG_SYS_BUILD'} ne "docker") {
|
if($ENV{'GOLANG_SYS_BUILD'} ne "docker") {
|
||||||
print STDERR "In the new build system, mksyscall should not be called directly.\n";
|
print STDERR "In the new build system, mksyscall should not be called directly.\n";
|
||||||
print STDERR "See README.md\n";
|
print STDERR "See README.md\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user