Changeset 673eb7a for tests/Makefile.am


Ignore:
Timestamp:
Sep 18, 2020, 1:24:16 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
a951171
Parents:
2724b4e
Message:

Tentative fix for meta test linkerror which would have different errors based on optimization levels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/Makefile.am

    r2724b4e r673eb7a  
    6060# adjusted CC but without the actual distcc call
    6161CFACCLOCAL = $(if $(DISTCC_CFA_PATH),$(DISTCC_CFA_PATH) ${ARCH_FLAGS},$(TARGET_CFA) ${DEBUG_FLAGS} ${ARCH_FLAGS})
     62CFACCLINK = $(CFACCLOCAL) $(if $(test), 2> $(test), ) $($(shell echo "${@}_FLAGSLD" | sed 's/-\|\//_/g'))
    6263
    6364PRETTY_PATH=mkdir -p $(dir $(abspath ${@})) && cd ${srcdir} &&
     
    112113% : %.cfa $(CFACCBIN)
    113114        $(CFACOMPILETEST) -c -o $(abspath ${@}).o
    114         $(CFACCLOCAL) $(if $(test), 2> $(test), ) $($(shell echo "${@}_FLAGSLD" | sed 's/-\|\//_/g')) ${@}.o -o $(abspath ${@})
     115        $(CFACCLINK) ${@}.o -o $(abspath ${@})
    115116
    116117# implicit rule for c++ test
     
    176177        $(CFACCLOCAL) $($(shell echo "${@}_FLAGSLD" | sed 's/-\|\//_/g')) $(abspath ${@}).o -o $(abspath ${@})
    177178
     179# Linking tests
     180# Meta tests to make sure we see linking errors (can't compile with -O2 since it may multiply number of calls)
     181linking/linkerror : linking/linkerror.cfa $(CFACCBIN)
     182        $(CFACOMPILETEST) -O0 -c -o $(abspath ${@}).o
     183        $(CFACCLINK)  -O0 ${@}.o -o $(abspath ${@})
     184
    178185#------------------------------------------------------------------------------
    179186# Other targets
Note: See TracChangeset for help on using the changeset viewer.