For testing, I usually test like this (in a script file) to get all
combinations:

rm ecma55;(ionice -c 3 nice -n 19 time make -j20 -l12 -fMakefile.tcc canrelease) 2>&1 | tee log.tcc
echo $?
rm ecma55;(ionice -c 3 nice -n 19 time make -j20 -l12 -fMakefile.gcc canrelease PIE=1 LTO=1) 2>&1 | tee log.gcc.pie.lto
echo $?
rm ecma55;(ionice -c 3 nice -n 19 time make -j20 -l12 -fMakefile.gcc canrelease PIE=1 LTO=0) 2>&1 | tee log.gcc.pie.nolto
echo $?
rm ecma55;(ionice -c 3 nice -n 19 time make -j20 -l12 -fMakefile.gcc canrelease PIE=0 LTO=0) 2>&1 | tee log.gcc.nopie.nolto
echo $?
rm ecma55;(ionice -c 3 nice -n 19 time make -j20 -l12 -fMakefile.gcc canrelease PIE=0 LTO=1) 2>&1 | tee log.gcc.nopie.lto
echo $?
rm ecma55;(ionice -c 3 nice -n 19 time make -j20 -l12 -fMakefile.clang canrelease PIE=1 LTO=1) 2>&1 | tee log.clang.pie.lto
echo $?
rm ecma55;(ionice -c 3 nice -n 19 time make -j20 -l12 -fMakefile.clang canrelease PIE=1 LTO=0) 2>&1 | tee log.clang.pie.nolto
echo $?
rm ecma55;(ionice -c 3 nice -n 19 time make -j20 -l12 -fMakefile.clang canrelease PIE=0 LTO=1) 2>&1 | tee log.clang.nopie.lto
echo $?
rm ecma55;(ionice -c 3 nice -n 19 time make -j20 -l12 -fMakefile.clang canrelease PIE=0 LTO=0) 2>&1 | tee log.clang.nopie.nolto
echo $?

Here I assume you are using bash, so you'll need to adjust this if you are
using something else.  Once you have run the tests, all of the "echo $?" should
have printed "0".  Then you also need to run grep to check the log files.  For
instance, having tested gcc without PIE or LTO, I would do these greps:

grep FAIL log.gcc.nopie.nolto
grep rror: log.gcc.nopie.nolto
grep ning: log.gcc.nopie.nolto

There should be no output from any of the invocation of grep.

Note well: If you don't have a pretty modern, powerful  machine, then script
these tests and let them run overnight.  For instance, on a fossil like the
core-i7 4790 with hyper-threading disabled in BIOS I have to use at work, it
takes about 2 hours to run the fastest tests (the tcc tests using -j6 -l4)
if everything goes well and no errors occur.
