Changeset 7009b9b for tests/Makefile.am


Ignore:
Timestamp:
Sep 12, 2019, 3:56:27 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
15f9c8e
Parents:
31d8f4d
Message:

Fixed compilation of tests that don't produce an executable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/Makefile.am

    r31d8f4d r7009b9b  
    8989
    9090# Use for all tests, make sure the path are correct and all flags are added
    91 CFACOMPILETEST=$(PRETTY_PATH) $(CFACOMPILE) -c $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g'))
     91CFACOMPILETEST=$(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g'))
    9292
    9393# Use for tests that either generate an executable, print directly to stdout or the make command is expected to fail
     
    9999#----------------------------------------------------------------------------------------------------------------
    100100
     101is_ascii = $(shell file )
     102
    101103# implicit rule so not all test require a rule
    102104% : %.cfa $(CFACCBIN)
    103         $(CFACOMPILETEST) -o $(abspath ${@}).o
     105        $(CFACOMPILETEST) -c -o $(abspath ${@}).o
    104106        $(CFACC) $(abspath ${@}).o -o $(abspath ${@})
    105107
     108# @ if [[ "$(shell file $(abspath ${@}).o)" == *"ASCII text"* ]]; then echo "mv $(abspath ${@}).o $(abspath ${@})"; mv $(abspath ${@}).o $(abspath ${@}); else echo "$(CFACC) $(abspath ${@}).o -o $(abspath ${@});"; $(CFACC) $(abspath ${@}).o -o $(abspath ${@}); fi
     109
     110declarationSpecifier gccExtensions extension attributes functions KRfunctions : % : %.cfa $(CFACCBIN)
     111        $(CFACOMPILETEST) -CFA -XCFA -p -o $(abspath ${@}).o
     112        mv $(abspath ${@}).o $(abspath ${@})
    106113
    107114% : %.cpp
Note: See TracChangeset for help on using the changeset viewer.