Skip to content

Commit dc1334d

Browse files
committed
fix debug package compilation
1 parent 65015e7 commit dc1334d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

cmd/cell/build/build.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ func Build(options *option.Options) error {
3030
return err
3131
}
3232

33+
err = compilePackage(c, root+"/"+"debug", "debug", options)
34+
if err != nil {
35+
return err
36+
}
37+
3338
err = compilePackage(c, path, "main", options)
3439
if err != nil {
3540
return err
@@ -160,7 +165,7 @@ func compilePackage(c *compiler.Compiler, path, name string, options *option.Opt
160165
continue
161166
}
162167
packageName := filepath.Base(packagePath)
163-
if c.IsPackageImported(packageName) && packageName != "debug" {
168+
if c.IsPackageImported(packageName) {
164169
continue
165170
}
166171

pkg/encoding/binary/binary.cell

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"errors"
55
"io"
66
"bytes"
7-
"debug"
87
)
98

109
type ByteOrder interface {
@@ -321,9 +320,6 @@ func ReadUint32(r io.Reader, order ByteOrder) uint32 {
321320
if err.NotNone() {
322321
return uint32(0)
323322
}
324-
// for i, v := range bs {
325-
// debug.Printf("bs i %d", v)
326-
// }
327323
return order.Uint32(bs)
328324
}
329325

0 commit comments

Comments
 (0)