]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ld/testsuite: Use $plug_opt for --plugin option
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 14 May 2025 08:43:22 +0000 (16:43 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 14 May 2025 10:00:41 +0000 (18:00 +0800)
commit23e60b094692e5964882042deb4d58362d82626d
tree8d5f7f7c007685140be40e882378f3e6bcd3169e
parentc5a0d257377a1cbec47403652a3a0de99b065a5b
ld/testsuite: Use $plug_opt for --plugin option

Use $plug_opt for --plugin usage, instead of running:

run_host_cmd "$CC_FOR_TARGET" "-print-prog-name=liblto_plugin.so"

PR binutils/21479
* testsuite/ld-plugin/lto-binutils.exp (lto_plugin): Removed.
Replace "--plugin $lto_plugin" with $plug_opt.
* testsuite/ld-plugin/lto.exp (lto_plugin): Removed.
Replace "--plugin $lto_plugin" with $plug_opt.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
ld/testsuite/ld-plugin/lto-binutils.exp
ld/testsuite/ld-plugin/lto.exp