From a5509c580c329c17f8662ff9561777bf03b739fe Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 30 Mar 2022 00:18:07 -0700 Subject: [PATCH] scons: Only warn about not finding fast model libs if it's enabled. These warnings could be confusing and aren't useful if it's not. Change-Id: Ie660f639a3d8ee3406153ceb771b1ba5d0df9225 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/58355 Reviewed-by: Yu-hsin Wang Maintainer: Gabe Black Tested-by: kokoro --- src/arch/arm/fastmodel/SConscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/arch/arm/fastmodel/SConscript b/src/arch/arm/fastmodel/SConscript index cfbe4b97cc..cded3cd197 100644 --- a/src/arch/arm/fastmodel/SConscript +++ b/src/arch/arm/fastmodel/SConscript @@ -105,7 +105,8 @@ def staticify(env, name): full_name = Dir(path).File(static_name).get_abspath() if os.path.isfile(full_name): return File(full_name) - warning("Failed to find FM static lib: " + name) + if env['CONF']['USE_ARM_FASTMODEL']: + warning("Failed to find FM static lib: " + name) return name # Adjust the build environment to support building in Fast Models.