vxworks: Fix GCC selftests for *-wrs-vxworks7-* targets
authorIain Buclaw <ibuclaw@gdcproject.org>
Thu, 20 Aug 2020 16:02:58 +0000 (18:02 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Thu, 20 Aug 2020 16:07:43 +0000 (18:07 +0200)
commitd241134695a3a28da92ebdfcf35e7ee7385adaf4
treec2eda819dc88e5b3a9d967b7f8a4403970d25ac6
parent05814dde7024a8fa05a735cafcda72b5eb5ec0c0
vxworks: Fix GCC selftests for *-wrs-vxworks7-* targets

Currently when building a cross-compiler targeting arm-wrs-vxworks7, the
self-tests fail unless the VSB_DIR environment variable is set.

This prevents attempts at designating the location of runtime header
files, libraries or startfiles, which would fail on unset environment
variables and aren't needed for such tests.

gcc/ChangeLog:

* config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Don't include
VxWorks header files if -fself-test is used.
(STARTFILE_PREFIX_SPEC): Avoid using VSB_DIR if -fself-test is used.
gcc/config/vxworks.h