commit 9e29d27e3b6acf3d819d8bca9ed16b85fd2d16d9 from: Stefan Sperling date: Thu Mar 15 00:39:09 2018 UTC revert accidental changes from 9feb4ff2689af67633c98892e721ccd407ea1c92 These changes enabled profiling. commit - 8628c62d73b92bfe39c6a8ec4d5a85f8a6fb662d commit + 9e29d27e3b6acf3d819d8bca9ed16b85fd2d16d9 blob - b96fa54031b91ee3b26894533b25f6b0da0f177a blob + 8e741204236a2eac2d5340b57fde5b4e4a7d1eb6 --- got/Makefile +++ got/Makefile @@ -7,9 +7,7 @@ SRCS= got.c delta.c error.c fileindex.c object.c path CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib LDADD = -lutil -lz DPADD = ${LIBZ} ${LIBUTIL} -CC = gcc -DEBUG = -O0 -pg -CPPFLAGS += -DPROFILE +DEBUG = -O0 -g CFLAGS += -Werror -Wall -Wstrict-prototypes -Wunused-variable # For now, default to installing binary in ~/bin blob - 95a3c58b2e1406aa5612b3f0b3bebcce4b204d3e blob + be95ec2118d5261062ef994e8f8d22a4a399606b --- got/got.c +++ got/got.c @@ -173,10 +173,8 @@ cmd_checkout(int argc, char *argv[]) argc -= optind; argv += optind; -#ifndef PROFILE if (pledge("stdio rpath wpath cpath flock", NULL) == -1) err(1, "pledge"); -#endif if (argc == 1) { char *cwd, *base, *dotgit; @@ -300,10 +298,9 @@ cmd_log(int argc, char *argv[]) struct got_object *obj; char *repo_path = NULL; -#ifndef PROFILE if (pledge("stdio rpath wpath cpath", NULL) == -1) err(1, "pledge"); -#endif + if (argc == 1) { repo_path = getcwd(NULL, 0); if (repo_path == NULL)