X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=binutils%2Ftestsuite%2Fconfig%2Fdefault.exp;fp=binutils%2Ftestsuite%2Fconfig%2Fdefault.exp;h=f3fd6244e9138e10cbb59c2a2c32fd5c2cf2cee1;hp=3c849b8d6586c54e194073ccd79410116e285647;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10 diff --git a/binutils/testsuite/config/default.exp b/binutils/testsuite/config/default.exp index 3c849b8..f3fd624 100644 --- a/binutils/testsuite/config/default.exp +++ b/binutils/testsuite/config/default.exp @@ -1,4 +1,4 @@ -# Copyright 1993, 1994, 1995, 1997, 1999, 2001, 2002, 2004, 2005, 2007 +# Copyright 1993, 1994, 1995, 1997, 1999, 2001, 2002, 2004, 2005, 2007, 2009 # Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify @@ -94,8 +94,14 @@ if {[file isfile ld/ld-new[exe_ext]]} then { } else { link_or_copy ld/ld-new ld[exe_ext] } -set gcc_gas_flag "-B[pwd]/tmpdir/gas/" -set dlltool_gas_flag "-S [pwd]/tmpdir/gas/as[exe_ext]" +if {[file isfile tmpdir/gas/as[exe_ext]]} then { + set gcc_gas_flag "-B[pwd]/tmpdir/gas/" + set dlltool_gas_flag "-S [pwd]/tmpdir/gas/as[exe_ext]" +} else { + # Testing an installed toolchain. + set gcc_gas_flag "" + set dlltool_gas_flag "" +} # # binutils_run