Skip to content

Commit

Permalink
fix debug package compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
douyixuan committed Sep 27, 2024
1 parent 65015e7 commit dc1334d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 6 additions & 1 deletion cmd/cell/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ func Build(options *option.Options) error {
return err
}

err = compilePackage(c, root+"/"+"debug", "debug", options)
if err != nil {
return err
}

err = compilePackage(c, path, "main", options)
if err != nil {
return err
Expand Down Expand Up @@ -160,7 +165,7 @@ func compilePackage(c *compiler.Compiler, path, name string, options *option.Opt
continue
}
packageName := filepath.Base(packagePath)
if c.IsPackageImported(packageName) && packageName != "debug" {
if c.IsPackageImported(packageName) {
continue
}

Expand Down
4 changes: 0 additions & 4 deletions pkg/encoding/binary/binary.cell
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"errors"
"io"
"bytes"
"debug"
)

type ByteOrder interface {
Expand Down Expand Up @@ -321,9 +320,6 @@ func ReadUint32(r io.Reader, order ByteOrder) uint32 {
if err.NotNone() {
return uint32(0)
}
// for i, v := range bs {
// debug.Printf("bs i %d", v)
// }
return order.Uint32(bs)
}

Expand Down

0 comments on commit dc1334d

Please sign in to comment.