scons: In Check(Cxx|Link)Flag, only install the flag if it exists.
authorGabe Black <gabe.black@gmail.com>
Thu, 11 Feb 2021 06:21:06 +0000 (22:21 -0800)
committerGabe Black <gabe.black@gmail.com>
Thu, 11 Feb 2021 19:33:24 +0000 (19:33 +0000)
commit1828a6e7e35e3247a2b5c9c42dcea6ae09a9b220
treeda5b4f853eba04ebc9ebef478faef93207d34db5
parent1861bc39ea460f5509367919b000c1c492c4d184
scons: In Check(Cxx|Link)Flag, only install the flag if it exists.

These functions where correctly returning whether a flag had existed,
and also correctly not installing it if asked not to. Unfortunately if
they *were* asked to install the flag, they ignored whether or not it
had actually existed to begin with.

Change-Id: I2dca0e1a0ddbc182576d48237aeea5452a02c51b
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/41159
Maintainer: Gabe Black <gabe.black@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
site_scons/gem5_scons/configure.py