From fb73d5dbbf7d9163cc009609668f938bec352ffd Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 30 Jan 2022 15:11:17 -0500 Subject: [PATCH] Always run pprof when running debug through makefile --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 865c3d1..563dc69 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,8 @@ build: GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -gcflags "all=-trimpath=$(pwd)" -o build/wings_linux_arm64 -v wings.go debug: - go build -ldflags="-X github.com/pterodactyl/wings/system.Version=$(GIT_HEAD)" -race - sudo ./wings --debug --ignore-certificate-errors --config config.yml + go build -ldflags="-X github.com/pterodactyl/wings/system.Version=$(GIT_HEAD)" + sudo ./wings --debug --ignore-certificate-errors --config config.yml --pprof # Runs a remotly debuggable session for Wings allowing an IDE to connect and target # different breakpoints.