Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmetzman committed Jun 17, 2024
1 parent af89694 commit 35e5307
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions infra/base-images/base-builder/jcc/jcc2.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ type BuildCommand struct {
}

func WriteTargetArgsAndCommitImage(cmdline []string) {
fmt.Println("WRITE COMMAND")
f, _ := os.OpenFile("/out/statefile.json", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
log.Println("WRITE COMMAND")
f, _ := os.OpenFile("/out/statefile.json", os.O_CREATE|os.O_WRONLY, 0644)
wd, _ := os.Getwd()
buildcmd := BuildCommand{
CWD: wd,
Expand All @@ -368,7 +368,8 @@ func WriteTargetArgsAndCommitImage(cmdline []string) {

func IsCompilingTarget(cmdline []string) bool {
for _, arg := range cmdline {
// This can fail if people do crazy things they aren't supposed to e.g.
// This can fail if people do crazy things they aren't supposed
// to such as using some other means to link in libFuzzer.
if arg == "-fsanitize=fuzzer" {
return true
}
Expand Down

0 comments on commit 35e5307

Please sign in to comment.