mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Have "wuffs genlib -skipgen" still build base libs
This commit is contained in:
1 parent
32b9ee4c37
commit
babd6e667d
2 files changed
+5
-2
No files matched your search
+1
-1
@@ -71,7 +71,7 @@ func doGenGenlib(wuffsRoot string, args []string, genlib bool) error {
|
|||||||
}
|
}
|
||||||
args = flags.Args()
|
args = flags.Args()
|
||||||
if len(args) == 0 {
|
if len(args) == 0 {
|
||||||
args = []string{"std/..."}
|
args = []string{"base", "std/..."}
|
||||||
}
|
}
|
||||||
|
|
||||||
h := genHelper{
|
h := genHelper{
|
||||||
|
|||||||
+4
-1
@@ -68,7 +68,7 @@ func doBenchTest(wuffsRoot string, args []string, bench bool) error {
|
|||||||
|
|
||||||
args = flags.Args()
|
args = flags.Args()
|
||||||
if len(args) == 0 {
|
if len(args) == 0 {
|
||||||
args = []string{"std/..."}
|
args = []string{"base", "std/..."}
|
||||||
}
|
}
|
||||||
|
|
||||||
cmdArgs := []string(nil)
|
cmdArgs := []string(nil)
|
||||||
@@ -156,6 +156,9 @@ type testHelper struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (h *testHelper) benchTest(dirname string, recursive bool) (failed bool, err error) {
|
func (h *testHelper) benchTest(dirname string, recursive bool) (failed bool, err error) {
|
||||||
|
if dirname == "base" {
|
||||||
|
return false, nil
|
||||||
|
}
|
||||||
qualFilenames, dirnames, err := listDir(
|
qualFilenames, dirnames, err := listDir(
|
||||||
filepath.Join(h.wuffsRoot, filepath.FromSlash(dirname)), ".wuffs", recursive)
|
filepath.Join(h.wuffsRoot, filepath.FromSlash(dirname)), ".wuffs", recursive)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in new issue
Block a user