[PATCH 2 of 2] chg: allows default hg path to be overrided

Yuya Nishihara yuya at tcha.org
Sun Mar 20 20:53:41 EDT 2016


On Sun, 20 Mar 2016 15:55:50 -0700, Jun Wu wrote:
> # HG changeset patch
> # User Jun Wu <quark at fb.com>
> # Date 1458513800 25200
> #      Sun Mar 20 15:43:20 2016 -0700
> # Node ID 95197bd663b214584480e844eac49c0620514f8f
> # Parent  cab48617a18dbccb5286ed8f90bfa608fe1d9f90
> chg: allows default hg path to be overrided

Queued these, thanks.

> diff --git a/contrib/chg/Makefile b/contrib/chg/Makefile
> --- a/contrib/chg/Makefile
> +++ b/contrib/chg/Makefile
> @@ -7,6 +7,9 @@
>  CFLAGS ?= -O2 -Wall -Wextra -pedantic -g
>  CPPFLAGS ?= -D_FORTIFY_SOURCE=2
>  override CFLAGS += -std=gnu99
> +ifdef HGPATH
> +override CFLAGS += -DHGPATH=\"$(HGPATH)\"
> +endif

I've changed it to be passed to CPPFLAGS as -D is a flag for cpp, not cc.


More information about the Mercurial-devel mailing list