From de944f8a832ebdd55b03b42f72a329abb53ef98e Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Tue, 5 May 2020 17:13:51 -0700 Subject: [PATCH] scons: Added 'python3-config' to the config list Previously scons looked for 'python-config' and 'python2-config'. This caused an error in Python3-exclusive environments. With only python3 installed, 'python3-config' is now an option. With this setup, 'python2-config' is used by default, unless overridden by the user via the scons command line. Change-Id: I11186328b0eb0825cc53c3889b31a5345a7f40d1 Issue-on: https://gem5.atlassian.net/browse/GEM5-275 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28648 Reviewed-by: Giacomo Travaglini Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index b7608a8b2..0a18c3d00 100755 --- a/SConstruct +++ b/SConstruct @@ -277,7 +277,7 @@ global_vars.AddVariables( ('CCFLAGS_EXTRA', 'Extra C and C++ compiler flags', ''), ('LDFLAGS_EXTRA', 'Extra linker flags', ''), ('PYTHON_CONFIG', 'Python config binary to use', - [ 'python2.7-config', 'python-config' ]), + [ 'python2.7-config', 'python-config', 'python3-config' ]), ('PROTOC', 'protoc tool', environ.get('PROTOC', 'protoc')), ('BATCH', 'Use batch pool for build and tests', False), ('BATCH_CMD', 'Batch pool submission command name', 'qdo'), -- 2.30.2