From 7ce4cd3a7e986b396dfce6540b04e9be5f084746 Mon Sep 17 00:00:00 2001 From: Zach Riggle Date: Fri, 31 Aug 2018 00:04:51 -0500 Subject: Makefile: Enable working with symlinked directories Resolves #698 --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 976a7cf85..f538a6d19 100644 --- a/Makefile +++ b/Makefile @@ -166,7 +166,9 @@ bin/syz-sysgen: format: format_go format_cpp format_sys format_go: - $(GO) fmt ./... + # When working from a symlinked directory outside of GOPATH, 'go fmt' will fail. + # We need to invoke it from a path inside of GOPATH. + cd $(realpath ${PWD}) && $(GO) fmt ./... format_cpp: clang-format --style=file -i executor/*.cc executor/*.h tools/kcovtrace/*.c -- cgit mrf-deployment