Skip to content

Commit

Permalink
fix: no CGO when building executables
Browse files Browse the repository at this point in the history
  • Loading branch information
jm33-m0 committed Jan 23, 2025
1 parent 4a736e2 commit 4d73434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/emp3r0r
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ build() {

info "Building CC"
{
cd cmd/cc && go build -o "$temp/cc.exe" -ldflags="$ldflags"
cd cmd/cc && CGO_ENABLED=0 go build -o "$temp/cc.exe" -ldflags="$ldflags"
} || error "build cc"
info "Building cat"
{
cd "$pwd/cmd/cat" && go build -o "$temp/cat.exe" -ldflags="$ldflags"
cd "$pwd/cmd/cat" && CGO_ENABLED=0 go build -o "$temp/cat.exe" -ldflags="$ldflags"
} || error "build cat"

# Linux
Expand Down

0 comments on commit 4d73434

Please sign in to comment.