Ignore:
Timestamp:
Feb 2, 2017, 3:52:24 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
7a560c1, dc99f38
Parents:
ac93b228
Message:

Added prototypes sed script to fix generated builtins declaration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/prelude/Makefile.am

    rac93b228 r99b75cab  
    2929# create forward declarations for gcc builtins
    3030builtins.cf : builtins.c
    31         ${AM_V_GEN}if [ -e $< ] ; then \
    32                 @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ ; \
    33         fi
     31        ${AM_V_GEN}@BACKEND_CC@ -E -P $^ | sed -f prototypes.sed > $@
    3432
    3533builtins.c : builtins.def prototypes.awk
    36         ${AM_V_GEN}if [ -e $< ] ; then \
    37                 @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ ; \
    38         fi
     34        ${AM_V_GEN}@BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@
    3935
    4036builtins.def :
Note: See TracChangeset for help on using the changeset viewer.