]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ld testsuite: Append NOSANITIZE_CFLAGS to CFLAGS_FOR_TARGET
authorAlan Modra <amodra@gmail.com>
Sat, 6 Apr 2024 01:16:09 +0000 (11:46 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 9 Apr 2024 01:51:57 +0000 (11:21 +0930)
commitc8d45dbd0a05885f57e52f9b852bea4c84bf3062
tree3e8242f7daf784e510fca0131df155de2148ca28
parent38d2fa177e3db3388b0ef99176b2b8857574eb5c
ld testsuite: Append NOSANITIZE_CFLAGS to CFLAGS_FOR_TARGET

The idea here is build tests without sanitizer flags, so they don't
fail due to many not using the compiler to link and thus result in
undefined symbols, since libasan is not supplied.  We definitely do not
want a compiler to perform linking in most cases, and it's complicated
to supply libasan (and would possibly disturb testcase output).

* testsuite/config/default.exp (CFLAGS_FOR_TARGET),
(CXXFLAGS_FOR_TARGET): Append NOSANITIZE_CFLAGS.
* testsuite/ld-bootstrap/bootstrap.exp: Use CC_FOR_TARGET and
CFLAGS_FOR_TARGET throughout.
ld/testsuite/config/default.exp
ld/testsuite/ld-bootstrap/bootstrap.exp