Opened 4 years ago

Closed 4 years ago

#926 closed defect (fixed) and fail because they use the wrong compiler

Reported by: Peter Owned by: Jari Häkkinen
Priority: minor Milestone: yat 0.17
Component: test Version: trunk
Keywords: Cc:


test/ and test/ fail because they run configure and compile/link with default compiler/linker. Tests should use CXX as provided at configure time. The same is probably true for other falgs such as CPPFLAGS, CXXFLAGS etc, but depends on test.

Change History (1)

comment:1 Changed 4 years ago by Peter

Resolution: fixed
Status: newclosed

In 3825:

closes #926

In tests call configure set CXX to the one found at configure time. In
some cases also set CPPFLAGS, CXXFLAGS and LDFLAGS. In general, if the
test configure script is using a c++ compiler, then we need to set CXX
except in some cases which uses g++ and these tests are skipped if g++
is not available (there's a possible hole there). If test is not
retrieving FLAGS from yat-config, directly or via yat.m4, then we set
the flags at commandline in the tests as the compiler might not run
without them.

Note: See TracTickets for help on using tickets.