-# Copyright 2012-2013 Free Software Foundation, Inc.
+# Copyright 2012-2022 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Example usage:
# bash$ make check RUNTESTFLAGS='--target_board=dwarf4-gdb-index'
-# This is copied from baseboards/unix.exp.
-# At the moment this only supports things that unix.exp supports.
-load_generic_config "unix"
-process_multilib_options ""
-set_board_info compiler "[find_gcc]"
+set CC_WITH_TWEAKS_FLAGS "-i"
+load_board_description "cc-with-tweaks"
set_board_info debug_flags "-gdwarf-4 -fdebug-types-section"
-
-set contrib_dir [file normalize $srcdir/../contrib]
-set CC_FOR_TARGET "/bin/sh $contrib_dir/cc-with-tweaks.sh -i gcc"
-set CXX_FOR_TARGET "/bin/sh $contrib_dir/cc-with-tweaks.sh -i g++"
-
-# This is needed otherwise dejagnu tries to rsh to host "dwarf4-gdb-index".
-# set_board_info only sets the value if not already set.
-unset_board_info isremote
-set_board_info isremote 0