]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: make mksyscall_windows.go -systemdll flag true by default
authorAlex Brainman <alex.brainman@gmail.com>
Wed, 11 May 2016 06:16:37 +0000 (16:16 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Thu, 12 May 2016 03:15:06 +0000 (03:15 +0000)
Updates #15167

Change-Id: I826f67e75011ba79325a1294ac0d70d7c6a3e32f
Reviewed-on: https://go-review.googlesource.com/23022
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/internal/syscall/windows/registry/syscall.go
src/internal/syscall/windows/syscall_windows.go
src/syscall/mksyscall_windows.go

index 02d985cec90b0f9ccdf40179a9c5540a1f1f2d93..5426cae90963308313cc186026e9187dcd0b6b78 100644 (file)
@@ -8,7 +8,7 @@ package registry
 
 import "syscall"
 
-//go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go -systemdll syscall.go
+//go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go syscall.go
 
 const (
        _REG_OPTION_NON_VOLATILE = 0
index 2eae5e75f9e411e56b4fd44cc62bd333490512f4..7b2bc79cebe4a4b044e184adbadf1cdefeb18024 100644 (file)
@@ -6,7 +6,7 @@ package windows
 
 import "syscall"
 
-//go:generate go run ../../../syscall/mksyscall_windows.go -output zsyscall_windows.go -systemdll syscall_windows.go
+//go:generate go run ../../../syscall/mksyscall_windows.go -output zsyscall_windows.go syscall_windows.go
 
 const GAA_FLAG_INCLUDE_PREFIX = 0x00000010
 
index 4ccbb04908c7a5aa72e6967998b14ba0823229dd..84747962ab559e89198742514be69a7a1d2ea747 100644 (file)
@@ -68,7 +68,7 @@ import (
 var (
        filename       = flag.String("output", "", "output file name (standard output if omitted)")
        printTraceFlag = flag.Bool("trace", false, "generate print statement after every syscall")
-       systemDLL      = flag.Bool("systemdll", false, "whether all DLLs should be loaded from the Windows system directory")
+       systemDLL      = flag.Bool("systemdll", true, "whether all DLLs should be loaded from the Windows system directory")
 )
 
 func trim(s string) string {