Ticket #8252: Conditionally-add-debug.c-to-ctags-build.patch

File Conditionally-add-debug.c-to-ctags-build.patch, 761 bytes (added by umccullough, 12 years ago)

debug.c is required to compile ctags with DEBUG=1

  • src/bin/ctags/Jamfile

    From 3ec932dd27eece28f89f92af9707075028a7d278 Mon Sep 17 00:00:00 2001
    From: Urias McCullough <umccullough@gmail.com>
    Date: Fri, 23 Dec 2011 14:19:38 -0800
    Subject: [PATCH] Conditionally add debug.c to ctags build
    
    ---
     src/bin/ctags/Jamfile |    5 +++++
     1 files changed, 5 insertions(+), 0 deletions(-)
    
    diff --git a/src/bin/ctags/Jamfile b/src/bin/ctags/Jamfile
    index 3b789b3..f0c109a 100644
    a b SubDirCcFlags -DHAVE_CONFIG_H ;  
    44
    55SUBDIRYACCFLAGS += d ;
    66
     7if $(DEBUG) {
     8    DEBUG_SOURCES = debug.c ;
     9}
     10
    711SubDirSysHdrs [ FDirName $(SUBDIR) ] ;
    812
    913BinCommand ctags :
    BinCommand ctags :  
    5054    vim.c
    5155    yacc.c
    5256    vstring.c
     57    $(DEBUG_SOURCES)
    5358    : 
    5459    : ctags.rdef ;
    5560