mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 08:52:18 +01:00
Add a skipgendeps flag
This commit is contained in:
1 parent
9867cd5e3a
commit
df4539f6ff
3 files changed
+23
-11
No files matched your search
+4
-2
@@ -36,6 +36,7 @@ func doBenchTest(wuffsRoot string, args []string, bench bool) error {
|
||||
mimicFlag := flags.Bool("mimic", cf.MimicDefault, cf.MimicUsage)
|
||||
repsFlag := flags.Int("reps", cf.RepsDefault, cf.RepsUsage)
|
||||
skipgenFlag := flags.Bool("skipgen", skipgenDefault, skipgenUsage)
|
||||
skipgendepsFlag := flags.Bool("skipgendeps", skipgendepsDefault, skipgendepsUsage)
|
||||
|
||||
if err := flags.Parse(args); err != nil {
|
||||
return err
|
||||
@@ -90,8 +91,9 @@ func doBenchTest(wuffsRoot string, args []string, bench bool) error {
|
||||
// Ensure that we are testing the latest version of the generated code.
|
||||
if !*skipgenFlag {
|
||||
gh := genHelper{
|
||||
wuffsRoot: wuffsRoot,
|
||||
langs: langs,
|
||||
wuffsRoot: wuffsRoot,
|
||||
langs: langs,
|
||||
skipgendeps: *skipgendepsFlag,
|
||||
}
|
||||
if err := gh.gen(arg, recursive); err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user